1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Corrected OliPump.java

This commit is contained in:
coco0325 2019-12-22 01:46:56 +08:00
parent ff0016ad0e
commit 87b8035b34

View File

@ -105,7 +105,7 @@ public abstract class OilPump extends AContainer {
OreGenResource oil = OreGenSystem.getResource("Oil");
Chunk chunk = b.getChunk();
int supplies = OreGenSystem.getSupplies(oil, chunk, false);
if(supplies > 0) {
if (supplies > 0) {
MachineRecipe r = new MachineRecipe(26, new ItemStack[0], new ItemStack[] {SlimefunItems.BUCKET_OF_OIL});
inv.replaceExistingItem(slot, InvUtils.decreaseItem(inv.getItemInSlot(slot), 1));
@ -118,10 +118,10 @@ public abstract class OilPump extends AContainer {
ItemStack item = BlockStorage.getInventory(b).getItemInSlot(slot).clone();
BlockStorage.getInventory(b).replaceExistingItem(slot, null);
pushItems(b, item);
break;
}
}
}
}
}
}