if (Game.isNotHost(thePlayer.worldObj))
return;
if (stack != null && stack.getItem() instanceof ItemElectricMeter)
if (entity instanceof IElectricMinecart) {
IElectricMinecart cart = (IElectricMinecart) entity;
IElectricMinecart.ChargeHandler ch = cart.getChargeHandler();
ChatPlugin.sendLocalizedChat(thePlayer, "railcraft.gui.electric.meter.charge", ch.getCharge(), ch.getCapacity(), ch.getLosses());
event.setCanceled(true);
}
}