Browse Source

Shiftrightclick to insert a Firestone

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

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

@@ -194,8 +194,8 @@ public class MultiTileEntityGeneratorSolid extends TileEntityBase09FacingSingle
194 194
 		
195 195
 		if (isClientSide()) return 0;
196 196
 		
197
-		if (aTool.equals(TOOL_igniter       ) && (aSide == mFacing || aPlayer == null)) {mBurning = T; return 10000;}
198
-		if (aTool.equals(TOOL_extinguisher  ) && (aSide == mFacing || aPlayer == null)) {mBurning = F; return 10000;}
197
+		if (aTool.equals(TOOL_igniter       ) && (aSide == mFacing || aPlayer == null)) {if (aSneaking && canInsertItem(0, aStack, SIDE_INSIDE)) return 0; mBurning = T; return 10000;}
198
+		if (aTool.equals(TOOL_extinguisher  ) && (aSide == mFacing || aPlayer == null)) {if (aSneaking && canInsertItem(0, aStack, SIDE_INSIDE)) return 0; mBurning = F; return 10000;}
199 199
 		if (aTool.equals(TOOL_shovel        ) &&  aSide == mFacing && slotHas(1)) {
200 200
 			long rDamage = 1000 * slot(1).stackSize;
201 201
 			UT.Inventories.addStackToPlayerInventoryOrDrop(aPlayer instanceof EntityPlayer ? (EntityPlayer)aPlayer : null, slot(1), worldObj, xCoord, yCoord, zCoord);

Loading…
Cancel
Save