From 8cf988e9aa6b75e1eb21824ee0d62118b88027a4 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sat, 19 Mar 2016 16:22:39 +1100 Subject: [PATCH] Fixed mudball throwing --- src/main/java/biomesoplenty/common/item/ItemMudball.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/biomesoplenty/common/item/ItemMudball.java b/src/main/java/biomesoplenty/common/item/ItemMudball.java index 9a69070f8..0e4d3a018 100644 --- a/src/main/java/biomesoplenty/common/item/ItemMudball.java +++ b/src/main/java/biomesoplenty/common/item/ItemMudball.java @@ -40,10 +40,12 @@ public class ItemMudball extends Item if (!world.isRemote) { - world.spawnEntityInWorld(new EntityMudball(world, player)); + EntityMudball mudball = new EntityMudball(world, player); + mudball.func_184538_a(player, player.rotationPitch, player.rotationYaw, 0.0F, 1.5F, 1.0F); + world.spawnEntityInWorld(mudball); } - //TODO: playerIn.addState(StatList.objectUseStats[Item.getIdFromItem(this)]); + player.addStat(StatList.getObjectUseStats(this)); return new ActionResult(EnumActionResult.SUCCESS, stack); } } \ No newline at end of file