mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 02:20:01 +03:00
14 lines
573 B
Diff
14 lines
573 B
Diff
--- ../src-base/minecraft/net/minecraft/item/ItemArrow.java
|
|
+++ ../src-work/minecraft/net/minecraft/item/ItemArrow.java
|
|
@@ -19,4 +19,10 @@
|
|
entitytippedarrow.setPotionEffect(stack);
|
|
return entitytippedarrow;
|
|
}
|
|
+
|
|
+ public boolean isInfinite(ItemStack stack, ItemStack bow, net.minecraft.entity.player.EntityPlayer player)
|
|
+ {
|
|
+ int enchant = net.minecraft.enchantment.EnchantmentHelper.getEnchantmentLevel(net.minecraft.init.Enchantments.INFINITY, bow);
|
|
+ return enchant <= 0 ? false : this.getClass() == ItemArrow.class;
|
|
+ }
|
|
}
|