InstanceOf check to avoid issues with railcraft.

This commit is contained in:
clienthax 2018-05-06 08:42:51 +01:00 committed by GitHub
parent 611627519d
commit 44683793f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,7 +297,7 @@ public class FluidNetwork extends DynamicNetwork<IFluidHandler, FluidNetwork>
EnumSet<ForgeDirection> sides = acceptorDirections.get(coord);
TileEntity tile = coord.getTileEntity(getWorld());
if(sides == null || sides.isEmpty())
if(sides == null || sides.isEmpty() || !(tile instanceof IFluidHandler))
{
continue;
}