Update ItemMudball.java
This commit is contained in:
parent
e49990e15b
commit
1cb0e8008f
|
@ -41,12 +41,11 @@ public class ItemMudball extends Item
|
|||
if (!world.isRemote)
|
||||
{
|
||||
EntityMudball mudball = new EntityMudball(world, player);
|
||||
//TODO: replace this
|
||||
//mudball.func_184538_a(player, player.rotationPitch, player.rotationYaw, 0.0F, 1.5F, 1.0F);
|
||||
mudball.setHeadingFromThrower(player, player.rotationPitch, player.rotationYaw, 0.0F, 1.5F, 1.0F);
|
||||
world.spawnEntityInWorld(mudball);
|
||||
}
|
||||
|
||||
player.addStat(StatList.getObjectUseStats(this));
|
||||
return new ActionResult<ItemStack>(EnumActionResult.SUCCESS, stack);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue