Fixed tests
This commit is contained in:
@@ -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;
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user