Make custom Env flag reliably possible (#8019)

* Make custom Env flag reliably possible

* screw you

* "compatibility" for mods that don't use add()
This commit is contained in:
GlennFolker 2023-01-08 01:48:28 +07:00 committed by GitHub
parent d7d5ba7510
commit 93f630bb69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 92 additions and 10 deletions

View file

@ -190,7 +190,7 @@ public class ApplicationTests{
@Test
void writeRules(){
ByteBuffer buffer = ByteBuffer.allocate(500);
ByteBuffer buffer = ByteBuffer.allocate(1000);
Rules rules = new Rules();
rules.attackMode = true;
@ -981,4 +981,4 @@ public class ApplicationTests{
tile.build.handleStack(item, 1, unit);
assertEquals(capacity, tile.build.items.get(item));
}
}
}