mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-03 12:49:11 +00:00
parent
200311033f
commit
0db080154c
@ -78,7 +78,7 @@ public final class InventoryUtil
|
|||||||
if( y >= 0 && y < world.getHeight() )
|
if( y >= 0 && y < world.getHeight() )
|
||||||
{
|
{
|
||||||
BlockEntity tileEntity = world.getBlockEntity( pos );
|
BlockEntity tileEntity = world.getBlockEntity( pos );
|
||||||
if( tileEntity != null )
|
if( tileEntity instanceof Inventory )
|
||||||
{
|
{
|
||||||
return (Inventory) tileEntity;
|
return (Inventory) tileEntity;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user