Skip to content

Commit

Permalink
Address changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Intybyte committed Oct 26, 2024
1 parent 1c22c7c commit 327a258
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ public class ExpCollector extends SlimefunItem implements InventoryBlock, Energy
private int energyConsumedPerTick = -1;
private int energyCapacity = -1;

public ExpCollector(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) {
this(itemGroup, item, recipeType, recipe, 4.0);
}

@ParametersAreNonnullByDefault
public ExpCollector(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, double range) {
super(itemGroup, item, recipeType, recipe);
this.range = range;

createPreset(this, this::constructMenu);

this.range = range;
addItemHandler(onPlace(), onBreak());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ public int getEnergyConsumption() {
.register(plugin);

new ExpCollector(itemGroups.electricity, SlimefunItems.EXP_COLLECTOR, RecipeType.ENHANCED_CRAFTING_TABLE,
new ItemStack[] {null, SlimefunItems.BLISTERING_INGOT_3, null, SlimefunItems.WITHER_PROOF_OBSIDIAN, SlimefunItems.AUTO_ENCHANTER, SlimefunItems.WITHER_PROOF_OBSIDIAN, SlimefunItems.ALUMINUM_BRONZE_INGOT, SlimefunItems.ELECTRIC_MOTOR, SlimefunItems.ALUMINUM_BRONZE_INGOT}, 4.0)
new ItemStack[] {null, SlimefunItems.BLISTERING_INGOT_3, null, SlimefunItems.WITHER_PROOF_OBSIDIAN, SlimefunItems.AUTO_ENCHANTER, SlimefunItems.WITHER_PROOF_OBSIDIAN, SlimefunItems.ALUMINUM_BRONZE_INGOT, SlimefunItems.ELECTRIC_MOTOR, SlimefunItems.ALUMINUM_BRONZE_INGOT})
.setEnergyConsumption(10)
.setCapacity(1024)
.register(plugin);
Expand Down

0 comments on commit 327a258

Please sign in to comment.