This commit is contained in:
Anuken
2025-12-13 11:37:31 -05:00
parent 209352d3ed
commit fce9bc3701
2 changed files with 27 additions and 6 deletions

View File

@@ -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();