don't take fluid when less than 1b in the system, #653
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user