Fix more items and unsafe checks that made items get deleted.

This commit is contained in:
Gunther De Wachter
2017-07-02 07:44:21 +02:00
parent b67d7eed82
commit e96339dd2b
10 changed files with 23 additions and 23 deletions
@@ -67,7 +67,7 @@ public class ToolReplicatorCard extends AEBaseItem
tag.setInteger( "z", z );
tag.setInteger( "side", side.ordinal() );
tag.setInteger( "dimid", world.provider.getDimension() );
player.getHeldItemMainhand().setTagCompound( tag );
player.getHeldItem(hand).setTagCompound( tag );
}
else
{
@@ -76,7 +76,7 @@ public class ToolReplicatorCard extends AEBaseItem
}
else
{
final NBTTagCompound ish = player.getHeldItemMainhand().getTagCompound();
final NBTTagCompound ish = player.getHeldItem(hand).getTagCompound();
if( ish != null )
{
final int src_x = ish.getInteger( "x" );