don't take fluid when less than 1b in the system, #653

This commit is contained in:
way2muchnoise
2016-11-20 20:46:02 +01:00
parent 724b515e94
commit c8688fe8a6

View File

@@ -24,7 +24,11 @@ public class FluidGridHandler implements IFluidGridHandler {
public void onExtract(int hash, boolean shift, EntityPlayerMP player) { public void onExtract(int hash, boolean shift, EntityPlayerMP player) {
FluidStack stack = network.getFluidStorageCache().getList().get(hash); FluidStack stack = network.getFluidStorageCache().getList().get(hash);
if (stack != null && RSUtils.hasFluidBucket(stack)) { if (stack == null || stack.amount < 1000) {
return;
}
if (RSUtils.hasFluidBucket(stack)) {
ItemStack bucket = network.extractItem(RSUtils.EMPTY_BUCKET, 1, false); ItemStack bucket = network.extractItem(RSUtils.EMPTY_BUCKET, 1, false);
if (bucket == null) { if (bucket == null) {