From d77142c6e00cb1fe1a93ff29d85a13d7f973ccd0 Mon Sep 17 00:00:00 2001 From: Mohammad-Ali Minaie Date: Sun, 19 Aug 2018 02:00:45 -0400 Subject: [PATCH] cant figure out issue with picking up and placing crucibles and not remembering state, probably has to do with placement code --- .../main/java/nmd/primal/forgecraft/items/SlottedTongs.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kfc/src/main/java/nmd/primal/forgecraft/items/SlottedTongs.java b/kfc/src/main/java/nmd/primal/forgecraft/items/SlottedTongs.java index 83ce553e..f2fbf7c4 100644 --- a/kfc/src/main/java/nmd/primal/forgecraft/items/SlottedTongs.java +++ b/kfc/src/main/java/nmd/primal/forgecraft/items/SlottedTongs.java @@ -274,12 +274,16 @@ public class SlottedTongs extends Item implements IPickup, AnvilHandler{ if (!slotList.get(0).isEmpty()) { if (slotList.get(0).getItem() instanceof ItemNBTCrucible) { NBTTagCompound tag = this.slotList.get(0).getSubCompound("BlockEntityTag").copy(); + NBTTagCompound defaultNBT = this.slotList.get(0).getTagCompound(); if (tag != null) { + System.out.println(tag); + System.out.println(defaultNBT); ItemBlock temp = (ItemBlock) slotList.get(0).getItem(); int i = this.getMetadata(slotList.get(0).getMetadata()); IBlockState iblockstate1 = temp.getBlock().getStateForPlacement(world, pos, face, hitx, hity, hitz, i, player, hand); temp.placeBlockAt(slotList.get(0), player, world, pos.up(1), face, hitx, hity, hitz, iblockstate1); slotList.set(0, ItemStack.EMPTY); + return EnumActionResult.SUCCESS; } }