1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-24 07:56:54 +00:00

Fix incorrect inventory check

Closes #209
This commit is contained in:
SquidDev 2019-05-25 12:23:53 +01:00
parent 200311033f
commit 0db080154c

View File

@ -78,7 +78,7 @@ public final class InventoryUtil
if( y >= 0 && y < world.getHeight() )
{
BlockEntity tileEntity = world.getBlockEntity( pos );
if( tileEntity != null )
if( tileEntity instanceof Inventory )
{
return (Inventory) tileEntity;
}