@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/item/ItemEgg.java
|
||||
+++ b/net/minecraft/world/item/ItemEgg.java
|
||||
@@ -19,14 +19,22 @@
|
||||
@@ -22,14 +22,22 @@
|
||||
public InteractionResultWrapper<ItemStack> use(World world, EntityHuman entityhuman, EnumHand enumhand) {
|
||||
ItemStack itemstack = entityhuman.getItemInHand(enumhand);
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
+ world.playSound((EntityHuman) null, entityhuman.getX(), entityhuman.getY(), entityhuman.getZ(), SoundEffects.EGG_THROW, SoundCategory.PLAYERS, 0.5F, 0.4F / (world.getRandom().nextFloat() * 0.4F + 0.8F));
|
||||
|
||||
entityhuman.awardStat(StatisticList.ITEM_USED.get(this));
|
||||
if (!entityhuman.getAbilities().instabuild) {
|
||||
itemstack.consume(1, entityhuman);
|
||||
|
||||
Reference in New Issue
Block a user