Only fill items on the serverside
@@ -107,6 +107,8 @@ public class FluidTransferUtil {
Direction face = hit.getFace();
// fetch capability before copying, bit more work when its a fluid handler, but saves copying time when its not
if (stack.getCapability(CapabilityFluidHandler.FLUID_HANDLER_ITEM_CAPABILITY).isPresent()) {
+ // only server needs to transfer stuff
+ if (!world.isRemote) {
TileEntity te = world.getTileEntity(pos);
if (te != null) {
LazyOptional<IFluidHandler> teCapability = te.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, face);
@@ -129,6 +131,7 @@ public class FluidTransferUtil {
});
}
}
+ }
return true;
}
return false;
