You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.AssertionError:
Expected :trueActual :false
<Clicktoseedifference>
atorg.junit.Assert.fail(Assert.java:93)
atorg.junit.Assert.failNotEquals(Assert.java:647)
atorg.junit.Assert.assertEquals(Assert.java:128)
atorg.junit.Assert.assertEquals(Assert.java:147)
atDynamicTest.convertTest(DynamicTest.java:43) // The line is commented in the example above.atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
...
Where will this bug be a problem?
When you set the generator-settings in the server.properties to a JSON object it will always turn up in the level.dat as:
useCaves: 0useRavines: 0
When you set the generator-settings to {"useCaves":true,"useRavines":false}
The text was updated successfully, but these errors were encountered:
As far as I can identify the problem is with NBTTagCompound, when calling getBoolean it looks for 1 or 0 as boolean, but the value is stored as a string "false" or "true".
Issue from https://bugs.mojang.com/browse/MC-135413
I found a problem with the class:
com.mojang.datafixers.Dynamic
When I try to convert a boolean value from a JsonElement it always turns up as false.
Base a basic UnitTest to explain my scenario.
The result when we run the UnitTest is
Where will this bug be a problem?
When you set the generator-settings in the server.properties to a JSON object it will always turn up in the level.dat as:
When you set the generator-settings to
{"useCaves":true,"useRavines":false}
The text was updated successfully, but these errors were encountered: