Fixed Wrench in Dismantling Mode voiding Storage Block contents
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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,
|
|
||||||
state.getBlock().getMetaFromState(state)
|
|
||||||
);
|
|
||||||
|
|
||||||
|
if (!tileStack.hasTagCompound()) {
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user