Skip to content

Commit ef2eba2

Browse files
committed
Fix steam machines crashing the game as they finish a craft
Fixes #29 NEEDS_VENTING packet ID overlapped with NOT_ENOUGH_ENERGY in superclass AbstractRecipeLogic, resulting in a crash in receiveCustomData, which runs the superclass implementation first, consuming the data meant for the subclass. All packet IDs in RecipeLogicSteam increased by 1 to eliminate overlap.
1 parent 99a7e77 commit ef2eba2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/gregtech/api/capability/impl/RecipeLogicSteam.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
public class RecipeLogicSteam extends AbstractRecipeLogic {
2727

2828
protected static class DataIDs {
29-
public static final int NEEDS_VENTING = 2;
30-
public static final int SET_VENTING_SIDE = 3;
31-
public static final int VENTING_STUCK = 4;
29+
public static final int NEEDS_VENTING = 3;
30+
public static final int SET_VENTING_SIDE = 4;
31+
public static final int VENTING_STUCK = 5;
3232
}
3333

3434
private final IFluidTank steamFluidTank;

0 commit comments

Comments
 (0)