Interface names work on the server again. Derp

This commit is contained in:
AlgorithmX2 2014-08-08 20:21:31 -05:00
parent 5a14cf563c
commit 79d684bc92

View file

@ -1043,10 +1043,6 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
ItemStack what = new ItemStack( item, 1, blk.getDamageValue( w, tile.xCoord + s.offsetX, tile.yCoord + s.offsetY, tile.zCoord + s.offsetZ ) );
try
{
if ( mop != null && !badBlocks.contains( blk ) )
{
if ( te instanceof ICraftingMachine || InventoryAdaptor.getAdaptor( te, s.getOpposite() ) != null )
{
if ( te instanceof IInventory && ((IInventory) te).getSizeInventory() == 0 )
@ -1060,22 +1056,27 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
continue;
}
try
{
if ( mop != null && !badBlocks.contains( blk ) )
{
if ( mop.blockX == te.xCoord && mop.blockY == te.yCoord && mop.blockZ == te.zCoord )
{
ItemStack g = blk.getPickBlock( mop, w, te.xCoord, te.yCoord, te.zCoord );
if ( g != null )
what = g;
}
if ( what.getItem() != null )
return what.getUnlocalizedName();
}
}
}
catch (Throwable t)
{
badBlocks.add( blk ); // nope!
}
if ( what.getItem() != null )
return what.getUnlocalizedName();
}
}
return "Nothing";