This commit is contained in:
raoulvdberge
2017-01-20 22:45:47 +01:00
parent cd00810ea1
commit d47feef78d

View File

@@ -32,9 +32,8 @@ public class FluidGridHandler implements IFluidGridHandler {
}
if (RSUtils.hasFluidBucket(stack)) {
ItemStack bucket = network.extractItem(RSUtils.EMPTY_BUCKET, 1, false);
ItemStack bucket = null;
if (bucket == null) {
for (int i = 0; i < player.inventory.getSizeInventory(); ++i) {
ItemStack slot = player.inventory.getStackInSlot(i);
@@ -46,6 +45,9 @@ public class FluidGridHandler implements IFluidGridHandler {
break;
}
}
if (bucket == null) {
bucket = network.extractItem(RSUtils.EMPTY_BUCKET, 1, false);
}
if (bucket != null) {