geforkt von Mirrors/Paper
SPIGOT-4310: Reset villager career level with trades
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
28431795ae
Commit
891ea11907
@ -15,6 +15,15 @@
|
|||||||
|
|
||||||
public class EntityVillager extends EntityAgeable implements NPC, IMerchant {
|
public class EntityVillager extends EntityAgeable implements NPC, IMerchant {
|
||||||
|
|
||||||
|
@@ -26,7 +34,7 @@
|
||||||
|
public int riches;
|
||||||
|
private String bO;
|
||||||
|
public int careerId;
|
||||||
|
- private int bQ;
|
||||||
|
+ public int bQ; // PAIL private->public
|
||||||
|
private boolean bR;
|
||||||
|
private boolean bS;
|
||||||
|
public final InventorySubcontainer inventory;
|
||||||
@@ -38,7 +46,7 @@
|
@@ -38,7 +46,7 @@
|
||||||
|
|
||||||
public EntityVillager(World world, int i) {
|
public EntityVillager(World world, int i) {
|
||||||
|
@ -70,6 +70,7 @@ public class CraftVillager extends CraftAgeable implements Villager, InventoryHo
|
|||||||
|
|
||||||
if (resetTrades) {
|
if (resetTrades) {
|
||||||
getHandle().trades = null;
|
getHandle().trades = null;
|
||||||
|
getHandle().bQ = 0; // SPIGOT-4310
|
||||||
getHandle().populateTrades();
|
getHandle().populateTrades();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren