diff --git a/src/main/java/github/kasuminova/stellarcore/mixin/botania/MixinTileRuneAltar.java b/src/main/java/github/kasuminova/stellarcore/mixin/botania/MixinTileRuneAltar.java index a710c3c..0f9174c 100644 --- a/src/main/java/github/kasuminova/stellarcore/mixin/botania/MixinTileRuneAltar.java +++ b/src/main/java/github/kasuminova/stellarcore/mixin/botania/MixinTileRuneAltar.java @@ -2,6 +2,7 @@ import github.kasuminova.stellarcore.common.config.StellarCoreConfig; import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.world.World; import org.spongepowered.asm.mixin.Mixin; @@ -27,6 +28,9 @@ public abstract class MixinTileRuneAltar extends TileSimpleInventory { @Shadow(remap = false) RecipeRuneAltar currentRecipe; + @Shadow + List lastRecipe; + @Unique private boolean stellar_core$shouldGetEntities = true; @@ -36,7 +40,7 @@ private void injectUpdateRecipe(final CallbackInfo ci) { return; } - if (this.currentRecipe == null && isEmpty()) { + if ((this.lastRecipe == null || this.lastRecipe.isEmpty()) && this.currentRecipe == null && isEmpty()) { ci.cancel(); } }