You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ if (this.level().purpurConfig.villagerLobotomizeEnabled) {
+ // treat as inactive if lobotomized
+ inactive = inactive || checkLobotomized();
+ } else {
+ this.isLobotomized = false;
+ }
+ // Purpur end
// Pufferfish start
if (!inactive && (getRider() == null || !this.isControllable()) && this.behaviorTick++ % this.activatedPriority == 0) { // Purpur - only use brain if no rider
this.getBrain().tick((ServerLevel) this.level(), this); // Paper
}
+ else if (this.isLobotomized && shouldRestock()) restock(); // Purpur
Spark link
https://spark.lucko.me/aKlGgISQYr
Expected behavior
Lobotomized villagers restock their trades.
Observed/Actual behavior
Lobotomized villagers do not restock trades.
Steps/models to reproduce
Trade with lobotomized villagers and wait for them to restock their items.
Purpur version
Current Purpur Version: 1.21.3-2358-16ce24a (MC: 1.21.3)*
Agreements
Other
This bug appears to be caused by a missing piece of code:
else if (this.isLobotomized && shouldRestock()) restock(); // Purpur
1.21.1:
Purpur/patches/server/0233-Lobotomize-stuck-villagers.patch
Lines 77 to 93 in 803bf62
1.21.3:
Purpur/patches/server/0232-Lobotomize-stuck-villagers.patch
Lines 79 to 90 in 16ce24a
The text was updated successfully, but these errors were encountered: