Skip to content

Commit 4a8f5e4

Browse files
committed
Fix cooldown in Treecutter codec
1 parent e8c0faa commit 4a8f5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neoforge-main/src/main/java/dev/compactmods/machines/room/upgrade/example/TreeCutterUpgradeComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private static Stream<LocatedInventory> getInventories(ServerLevel level, AABB b
192192

193193
public static class Data {
194194
public static final Codec<Data> CODEC = RecordCodecBuilder.create(i -> i.group(
195-
ExtraCodecs.POSITIVE_INT.fieldOf("cooldown").forGetter(d -> d.cooldown)
195+
ExtraCodecs.NON_NEGATIVE_INT.fieldOf("cooldown").forGetter(d -> d.cooldown)
196196
).apply(i, Data::new));
197197

198198
public int cooldown;

0 commit comments

Comments
 (0)