MattCzyr / RealisticTorches

A Minecraft mod that causes torches to burn out after a configurable amount of time.
https://www.curseforge.com/minecraft/mc-mods/realistic-torches
Other
26 stars 12 forks source link

[3.1.1] Crash: torchBurnoutTime negative value #39

Closed CurePindal closed 3 years ago

CurePindal commented 3 years ago

Wanted to disable torch burnout in my game. It crashed

Config states:

The amount of time until a torch burns out, in minutes. Setting this to a negative value will disable torch burnout.

#Range: -1 ~ 2880
torchBurnoutTime = -1

But: Caused by: java.lang.IllegalArgumentException: Max value of burntime must be greater than min (0) at net.minecraft.state.IntegerProperty.(SourceFile:19) ~[?:?] at net.minecraft.state.IntegerProperty.func_177719_a(SourceFile:57) ~[?:?] at com.chaosthedude.realistictorches.blocks.RealisticTorchBlock.(RealisticTorchBlock.java:35) ~[?:1.16.4-3.1.1]

MattCzyr commented 3 years ago

Fixed in version 3.1.2.