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:
parent
ff0016ad0e
commit
87b8035b34
@ -105,7 +105,7 @@ public abstract class OilPump extends AContainer {
|
|||||||
OreGenResource oil = OreGenSystem.getResource("Oil");
|
OreGenResource oil = OreGenSystem.getResource("Oil");
|
||||||
Chunk chunk = b.getChunk();
|
Chunk chunk = b.getChunk();
|
||||||
int supplies = OreGenSystem.getSupplies(oil, chunk, false);
|
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});
|
MachineRecipe r = new MachineRecipe(26, new ItemStack[0], new ItemStack[] {SlimefunItems.BUCKET_OF_OIL});
|
||||||
|
|
||||||
inv.replaceExistingItem(slot, InvUtils.decreaseItem(inv.getItemInSlot(slot), 1));
|
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();
|
ItemStack item = BlockStorage.getInventory(b).getItemInSlot(slot).clone();
|
||||||
BlockStorage.getInventory(b).replaceExistingItem(slot, null);
|
BlockStorage.getInventory(b).replaceExistingItem(slot, null);
|
||||||
pushItems(b, item);
|
pushItems(b, item);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user