Skip to content

Commit

Permalink
Updated to RC-16, fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Sfiguz7 committed Sep 9, 2020
1 parent 634462a commit c045101
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<dependency>
<groupId>com.github.TheBusyBiscuit</groupId>
<artifactId>Slimefun4</artifactId>
<version>613bcd86b8</version>
<version>RC-16</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock;
import me.mrCookieSlime.Slimefun.Objects.handlers.BlockTicker;
import me.mrCookieSlime.Slimefun.api.BlockStorage;
import me.mrCookieSlime.Slimefun.api.energy.ChargableBlock;
import me.mrCookieSlime.Slimefun.api.inventory.BlockMenu;
import me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset;
import me.mrCookieSlime.Slimefun.cscorelib2.item.CustomItem;
Expand Down Expand Up @@ -127,14 +126,14 @@ public void tick(Block b, SlimefunItem sf, Config data) {

ItemStack output = new ItemStack(Material.COBBLESTONE);

if (ChargableBlock.getCharge(b) >= ENERGY_CONSUMPTION) {
if (getCharge(b.getLocation()) >= ENERGY_CONSUMPTION) {
BlockMenu menu = BlockStorage.getInventory(b);

if (!menu.fits(output, getOutputSlots())) {
return;
}

ChargableBlock.addCharge(b, -ENERGY_CONSUMPTION);
addCharge(b.getLocation(), -ENERGY_CONSUMPTION);
menu.pushItem(output, getOutputSlots());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public boolean onBlockBreak(BlockBreakEvent e, ItemStack item, int fortune, List
public ItemStack getDrop(Block b) {

Material m = b.getType();
System.out.println();

switch (m) {
case STONE:
Expand Down

0 comments on commit c045101

Please sign in to comment.