Only make blue fire jars place blue fire
This commit is contained in:
parent
e76b5dad2a
commit
f2eb0052fe
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue