mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
parent
8777dd8e62
commit
46c18bc4d5
2 changed files with 14 additions and 0 deletions
|
@ -51,6 +51,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
@@ -302,7 +310,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- private void fT() {
|
||||
+ public void fT() {
|
||||
this.t(40);
|
||||
if (!this.level.isClientSide()) {
|
||||
this.playSound(SoundEffects.VILLAGER_NO, this.getSoundVolume(), this.ep());
|
||||
@@ -444,7 +452,14 @@
|
||||
while (iterator.hasNext()) {
|
||||
MerchantRecipe merchantrecipe = (MerchantRecipe) iterator.next();
|
||||
|
|
|
@ -107,6 +107,11 @@ public class CraftVillager extends CraftAbstractVillager implements Villager {
|
|||
getHandle().entityWakeup();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shakeHead() {
|
||||
getHandle().fT(); // PAIL rename shakeHead
|
||||
}
|
||||
|
||||
public static Profession nmsToBukkitProfession(VillagerProfession nms) {
|
||||
return Profession.valueOf(IRegistry.VILLAGER_PROFESSION.getKey(nms).getKey().toUpperCase(Locale.ROOT));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue