Fixed Wrench in Dismantling Mode voiding Storage Block contents

This commit is contained in:
raoulvdberge
2017-02-14 19:33:19 +01:00
parent aa3e59b910
commit 4455dc3f62
2 changed files with 7 additions and 7 deletions

View File

@@ -2,10 +2,11 @@
### 1.4.1 ### 1.4.1
- Added Storage Monitor (raoulvdberge) - Added Storage Monitor (raoulvdberge)
- Fixed Processing Pattern Encoder and Reader recipes not supporting oredict workbench and chest (VT-14) - Fixed Processing Pattern Encoder and Security Manager recipes not supporting oredict workbench and chest (VT-14)
- Fixed network nodes not saving correctly (raoulvdberge) - Fixed network nodes not saving correctly (raoulvdberge)
- Fixed network nodes not respecting redstone mode (raoulvdberge) - Fixed network nodes not respecting redstone mode (raoulvdberge)
- Fixed "Clear" and "Create Pattern" buttons not working correctly when using Grid Filter tabs (raoulvdberge) - Fixed "Clear" and "Create Pattern" buttons not working correctly when using Grid Filter tabs (raoulvdberge)
- Fixed Wrench in Dismantling Mode voiding Storage Block contents (raoulvdberge)
### 1.4 ### 1.4
- Added Security Manager (raoulvdberge) - Added Security Manager (raoulvdberge)

View File

@@ -129,13 +129,12 @@ public class ItemWrench extends ItemBase {
((TileNode) tile).writeConfiguration(data); ((TileNode) tile).writeConfiguration(data);
ItemStack tileStack = new ItemStack( ItemStack tileStack = state.getBlock().getDrops(world, pos, state, 0).get(0);
state.getBlock(),
1, if (!tileStack.hasTagCompound()) {
state.getBlock().getMetaFromState(state) tileStack.setTagCompound(new NBTTagCompound());
); }
tileStack.setTagCompound(new NBTTagCompound());
tileStack.getTagCompound().setTag(BlockNode.NBT_REFINED_STORAGE_DATA, data); tileStack.getTagCompound().setTag(BlockNode.NBT_REFINED_STORAGE_DATA, data);
world.setBlockToAir(pos); world.setBlockToAir(pos);