1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
TheBusyBiscuit 2022-01-16 15:02:05 +01:00
parent e8f2a5fc49
commit 014f832347
3 changed files with 6 additions and 4 deletions

View File

@ -55,6 +55,7 @@
* Fixed #1315
* Fixed #3400
* Fixed rare issue where Slimefun would not load at all
* Fixed #3429
## Release Candidate 30 (31 Dec 2021)
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#30

View File

@ -3,6 +3,8 @@ package io.github.thebusybiscuit.slimefun4.implementation.items.electric.machine
import java.util.ArrayList;
import java.util.List;
import javax.annotation.ParametersAreNonnullByDefault;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
@ -16,8 +18,6 @@ import io.github.thebusybiscuit.slimefun4.implementation.SlimefunItems;
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer;
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe;
import javax.annotation.ParametersAreNonnullByDefault;
/**
* The {@link Freezer} can freeze items into its frozen state, e.g. water to ice.
*

View File

@ -255,11 +255,12 @@ public abstract class AContainer extends SlimefunItem implements InventoryBlock,
warn("Make sure to call '" + getClass().getSimpleName() + "#setProcessingSpeed(...)' before registering!");
}
registerDefaultRecipes();
if (getCapacity() > 0 && getEnergyConsumption() > 0 && getSpeed() > 0) {
super.register(addon);
}
// Fixes #3429 - Initialize Item Settings before recipes
registerDefaultRecipes();
}
/**