Browse Source

The Firestone will now get out of the Burning Boxes Output before it breaks entirely

Gregorius Techneticies 2 months ago
parent
commit
734388f6e7
Signed by: Gregorius Techneticies <gregoriustech@gmail.com> GPG Key ID: 1B693EA14F2FD70F

+ 14
- 4
src/main/java/gregtech/tileentity/energy/generators/MultiTileEntityGeneratorSolid.java View File

@@ -119,12 +119,22 @@ public class MultiTileEntityGeneratorSolid extends TileEntityBase09FacingSingle
119 119
 					if (mOutput1 == null && slotHas(0) && !WD.hasCollide(worldObj, getOffsetX(mFacing), getOffsetY(mFacing), getOffsetZ(mFacing)) && !getBlockAtSide(mFacing).getMaterial().isLiquid() && WD.oxygen(worldObj, getOffsetX(mFacing), getOffsetY(mFacing), getOffsetZ(mFacing))) {
120 120
 						if (IL.RC_Firestone_Refined.equal(slot(0), T, T)) {
121 121
 							mEnergy += 800 * EU_PER_LAVA;
122
-							slot(0, ST.container(slot(0), F));
123
-							removeAllDroppableNullStacks();
122
+							ItemStack tStack = ST.container(slot(0), F);
123
+							if (ST.invalid(ST.container(tStack, F))) {
124
+								slot(0, NI);
125
+								mOutput1 = tStack;
126
+							} else {
127
+								slot(0, tStack);
128
+							}
124 129
 						} else if (IL.RC_Firestone_Cracked.equal(slot(0), T, T)) {
125 130
 							mEnergy += 600 * EU_PER_LAVA;
126
-							slot(0, ST.container(slot(0), F));
127
-							removeAllDroppableNullStacks();
131
+							ItemStack tStack = ST.container(slot(0), F);
132
+							if (ST.invalid(ST.container(tStack, F))) {
133
+								slot(0, NI);
134
+								mOutput1 = tStack;
135
+							} else {
136
+								slot(0, tStack);
137
+							}
128 138
 						} else {
129 139
 							Recipe tRecipe = mRecipes.findRecipe(this, mLastRecipe, T, Long.MAX_VALUE, null, ZL_FS, slot(0));
130 140
 							if (tRecipe != null && tRecipe.isRecipeInputEqual(T, F, ZL_FS, slot(0))) {

Loading…
Cancel
Save