Fixed #11441
This commit is contained in:
@@ -408,6 +408,32 @@ public class PatcherTests{
|
||||
assertEquals(0, Blocks.grass.attributes.get(Attribute.heat));
|
||||
}
|
||||
|
||||
@Test
|
||||
void singleValue() throws Exception{
|
||||
Vars.state.patcher.apply(Seq.with("""
|
||||
block: {
|
||||
graphite-press.craftTime: 1
|
||||
}
|
||||
"""));
|
||||
|
||||
assertNoWarnings();
|
||||
assertEquals(1f, ((GenericCrafter)Blocks.graphitePress).craftTime);
|
||||
}
|
||||
|
||||
@Test
|
||||
void singleValue2() throws Exception{
|
||||
Vars.state.patcher.apply(Seq.with("""
|
||||
block: {
|
||||
graphite-press: {
|
||||
craftTime: 1
|
||||
}
|
||||
}
|
||||
"""));
|
||||
|
||||
assertNoWarnings();
|
||||
assertEquals(1f, ((GenericCrafter)Blocks.graphitePress).craftTime);
|
||||
}
|
||||
|
||||
@Test
|
||||
void noResolution() throws Exception{
|
||||
String name = Pathfinder.class.getCanonicalName();
|
||||
|
||||
Reference in New Issue
Block a user