Fixed tests

This commit is contained in:
Anuken 2025-11-24 17:29:36 -05:00
parent 134167cb2e
commit b3f0e9399d
3 changed files with 5 additions and 3 deletions

View file

@ -95,8 +95,9 @@ public class Block extends UnlockableContent implements Senseable{
/** if true, double-tapping this configurable block clears configuration. */
public boolean clearOnDoubleTap = false;
/** whether this block has a tile entity that updates */
@NoPatch
public boolean update;
/** whether this block has health and can be destroyed */
/** whether this block has health and can be destroyed. note that setting this to false does nothing if update = true! */
public boolean destructible;
/** whether unloaders work on this block */
public boolean unloadable = true;

View file

@ -26,4 +26,4 @@ org.gradle.caching=true
org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000
android.enableR8.fullMode=false
archash=65d654d634
archash=f3e8138078

View file

@ -480,6 +480,7 @@ public class PatcherTests{
@Test
void addWeapon() throws Exception{
int oldSize = UnitTypes.flare.weapons.size;
Vars.state.patcher.apply(Seq.with("""
unit.flare.weapons.+: {
x: 0
@ -493,7 +494,7 @@ public class PatcherTests{
"""));
assertNoWarnings();
assertEquals(3, UnitTypes.flare.weapons.size);
assertEquals(oldSize + 1, UnitTypes.flare.weapons.size);
assertEquals(100, UnitTypes.flare.weapons.peek().bullet.damage);
}