Block water bucket for axolotl as well

This commit is contained in:
fullwall 2021-07-11 21:37:40 +08:00
parent d515c6b449
commit 65f5d870db

View File

@ -173,7 +173,7 @@ public class AxolotlController extends MobEntityController {
if (npc == null || !npc.isProtected()) if (npc == null || !npc.isProtected())
return super.mobInteract(entityhuman, enumhand); return super.mobInteract(entityhuman, enumhand);
ItemStack itemstack = entityhuman.getItemInHand(enumhand); ItemStack itemstack = entityhuman.getItemInHand(enumhand);
if (itemstack.getItem() == Items.BUCKET) { if (itemstack.getItem() == Items.BUCKET || itemstack.getItem() == Items.WATER_BUCKET) {
return InteractionResult.FAIL; return InteractionResult.FAIL;
} }
return super.mobInteract(entityhuman, enumhand); return super.mobInteract(entityhuman, enumhand);