Skip to content

Commit

Permalink
Increment wood type Last Known Number
Browse files Browse the repository at this point in the history
  • Loading branch information
mercurialmusic authored Dec 6, 2024
1 parent 80f3aa7 commit 334db64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/dre/brewery/utility/LegacyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class LegacyUtil {

if (!unknownWoodTypes.isEmpty()) {
P.p.log("New wood types detected. Assigning recipe numbers:");
int lastKnownNumber = 12;
int lastKnownNumber = 13;
for (int i = 0; i < unknownWoodTypes.size(); i++) {
P.p.log(" " + unknownWoodTypes.get(i) + ": " + (i + lastKnownNumber));
}
Expand Down Expand Up @@ -247,7 +247,7 @@ public static byte getWoodType(Block wood) throws NoSuchFieldError, NoClassDefFo
} else if (!UNKNOWN_WOOD.isEmpty()) {
for (int i = 0; i < UNKNOWN_WOOD.size(); i++) {
if (material.startsWith(UNKNOWN_WOOD.get(i))) {
return (byte) (i + 12);
return (byte) (i + 13);
}
}
return 0;
Expand Down

0 comments on commit 334db64

Please sign in to comment.