Null checks before instanceof

This commit is contained in:
thatsIch
2015-03-26 12:12:40 +01:00
parent 50f141edbd
commit b609b08f98
2 changed files with 2 additions and 2 deletions
@@ -657,7 +657,7 @@ public class MeteoritePlacer
{
this.put( w, x, y, z, this.skychest );
TileEntity te = w.getTileEntity( x, y, z );
if ( te != null && te instanceof IInventory )
if ( te instanceof IInventory )
{
InventoryAdaptor ap = InventoryAdaptor.getAdaptor( te, ForgeDirection.UP );