mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Fix entity shearing logic (#5566)
This commit is contained in:
1 parent
af717ad788
commit
d846f23e80
2 files changed
+7
-2
No files matched your search
@@ -27,12 +27,17 @@
|
||||
this.func_184747_a(false);
|
||||
itemstack.func_77972_a(1, p_184645_1_);
|
||||
}
|
||||
@@ -166,4 +166,10 @@
|
||||
@@ -166,4 +166,15 @@
|
||||
|
||||
public void func_184724_a(boolean p_184724_1_) {
|
||||
}
|
||||
+
|
||||
+ @Override
|
||||
+ public boolean isShearable(ItemStack item, net.minecraft.world.IWorldReader world, BlockPos pos) {
|
||||
+ return this.func_184748_o();
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public java.util.List<ItemStack> onSheared(ItemStack item, net.minecraft.world.IWorld world, BlockPos pos, int fortune) {
|
||||
+ this.func_184747_a(false);
|
||||
+ return new java.util.ArrayList<>();
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
+
|
||||
+ @Override
|
||||
+ public boolean isShearable(ItemStack item, net.minecraft.world.IWorldReader world, BlockPos pos) {
|
||||
+ return !this.func_70631_g_();
|
||||
+ return !this.func_70892_o() && !this.func_70631_g_();
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
|
||||
Reference in new issue
Block a user