File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/github/kasuminova/stellarcore/mixin/botania Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
33import github .kasuminova .stellarcore .common .config .StellarCoreConfig ;
44import net .minecraft .entity .Entity ;
5+ import net .minecraft .item .ItemStack ;
56import net .minecraft .util .math .AxisAlignedBB ;
67import net .minecraft .world .World ;
78import org .spongepowered .asm .mixin .Mixin ;
@@ -27,6 +28,9 @@ public abstract class MixinTileRuneAltar extends TileSimpleInventory {
2728 @ Shadow (remap = false )
2829 RecipeRuneAltar currentRecipe ;
2930
31+ @ Shadow
32+ List <ItemStack > lastRecipe ;
33+
3034 @ Unique
3135 private boolean stellar_core$shouldGetEntities = true ;
3236
@@ -36,7 +40,7 @@ private void injectUpdateRecipe(final CallbackInfo ci) {
3640 return ;
3741 }
3842
39- if (this .currentRecipe == null && isEmpty ()) {
43+ if (( this . lastRecipe == null || this . lastRecipe . isEmpty ()) && this .currentRecipe == null && isEmpty ()) {
4044 ci .cancel ();
4145 }
4246 }
You can’t perform that action at this time.
0 commit comments