Update ItemMudball.java

This commit is contained in:
Forstride 2016-08-11 18:03:51 -04:00 committed by GitHub
parent e49990e15b
commit 1cb0e8008f
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}
}