mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 02:20:01 +03:00
12 lines
531 B
Diff
12 lines
531 B
Diff
--- ../src-base/minecraft/net/minecraft/entity/ai/EntityAIAttackRangedBow.java
|
|
+++ ../src-work/minecraft/net/minecraft/entity/ai/EntityAIAttackRangedBow.java
|
|
@@ -40,7 +40,7 @@
|
|
|
|
protected boolean isBowInMainhand()
|
|
{
|
|
- return !this.entity.getHeldItemMainhand().isEmpty() && this.entity.getHeldItemMainhand().getItem() == Items.BOW;
|
|
+ return !this.entity.getHeldItemMainhand().isEmpty() && this.entity.getHeldItemMainhand().getItem() instanceof ItemBow;
|
|
}
|
|
|
|
public boolean shouldContinueExecuting()
|