Only make blue fire jars place blue fire

This commit is contained in:
GirafiStudios 2018-10-04 02:56:25 +02:00
parent e76b5dad2a
commit f2eb0052fe
1 changed files with 28 additions and 25 deletions

View File

@ -94,8 +94,9 @@ public class ItemJarFilled extends Item
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, @Nonnull EnumHand hand)
{
ItemStack heldStack = player.getHeldItem(hand);
if (getContentsType(heldStack) == JarContents.BLUE_FIRE)
{
RayTraceResult raytraceresult = this.rayTrace(world, player, false);
if (raytraceresult == null)
{
return new ActionResult<>(EnumActionResult.PASS, heldStack);
@ -134,6 +135,8 @@ public class ItemJarFilled extends Item
}
}
}
return new ActionResult<>(EnumActionResult.PASS, heldStack);
}
private void emptyJar(EntityPlayer player, EnumHand hand)
{