Fixed Wrench clearing NBT data when reset causing problems with Morph O Tool, fixes #706
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
### 1.3.2
|
### 1.3.2
|
||||||
- Fixed being able to exceed max stack size while shift clicking (raoulvdberge)
|
- Fixed being able to exceed max stack size while shift clicking (raoulvdberge)
|
||||||
|
- Fixed Wrench clearing NBT data when reset causing problems with Morph O Tool (raoulvdberge)
|
||||||
|
|
||||||
### 1.3.1
|
### 1.3.1
|
||||||
- Updated Forge to 2180 (raoulvdberge)
|
- Updated Forge to 2180 (raoulvdberge)
|
||||||
|
|||||||
@@ -127,7 +127,12 @@ public class ItemWrench extends ItemBase {
|
|||||||
|
|
||||||
WrenchMode mode = WrenchMode.readFromNBT(stack.getTagCompound());
|
WrenchMode mode = WrenchMode.readFromNBT(stack.getTagCompound());
|
||||||
|
|
||||||
stack.setTagCompound(new NBTTagCompound());
|
if (stack.hasTagCompound()) {
|
||||||
|
stack.getTagCompound().removeTag(NBT_WRENCHED_TILE);
|
||||||
|
stack.getTagCompound().removeTag(NBT_WRENCHED_DATA);
|
||||||
|
} else {
|
||||||
|
stack.setTagCompound(new NBTTagCompound());
|
||||||
|
}
|
||||||
|
|
||||||
WrenchMode next = mode.cycle();
|
WrenchMode next = mode.cycle();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user