ItemStack currentEquippedItem = player.getCurrentEquippedItem();
TileEntity te = world.getTileEntity(x, y, z);
if(te instanceof TileEntityReactorCreativeCoolantPort) {
TileEntityReactorCreativeCoolantPort cp = (TileEntityReactorCreativeCoolantPort)te;
if(currentEquippedItem == null || StaticUtils.Inventory.isPlayerHoldingWrench(player)) {
// Use wrench to change inlet/outlet state
cp.setInlet(!cp.isInlet(), true);
}
else {
cp.forceAddWater();
}
return true;
}
return false;