Skip to content

Commit

Permalink
Try fix dupe with Focus: Dislocation
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerforEA committed Mar 20, 2018
1 parent 65090ad commit 59394a9
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
Expand Down Expand Up @@ -177,6 +178,19 @@ else if (!blacklist.contains(block) && !ThaumcraftApi.portableHoleBlackList.cont
world.removeTileEntity(mop.blockX, mop.blockY, mop.blockZ);
world.setBlock(mop.blockX, mop.blockY, mop.blockZ, Blocks.air, 0, 1 | 2);
this.storePickedBlock(itemstack, block, (short) meta, tile);

// TODO gamerforEA code start
if (tile instanceof IInventory)
{
IInventory inventory = (IInventory) tile;
for (int slot = 0; slot < inventory.getSizeInventory(); slot++)
{
ItemStack stackInSlot = inventory.getStackInSlot(slot);
if (stackInSlot != null)
inventory.setInventorySlotContents(slot, null);
}
}
// TODO gamerforEA code end
}

for (int i = 0; i < 8; i++)
Expand Down

0 comments on commit 59394a9

Please # to comment.