unconditionally mark unsatisfied hint as red

I don't think anyone would turn this off...
This commit is contained in:
Glease committed 2022-08-23 16:59:51 +08:00
1 parent b34e901a93
commit b2624a3d36
2 files changed
+1 -3

No files matched your search

@@ -20,7 +20,6 @@ public class ConstructableUtility {
// TODO make these configurable and expose this to external world
public static final int COOLDOWN = 5;
private static final int BUDGET = 25;
public static boolean redBrokenOne = true; // TODO this is horrible
private ConstructableUtility() {}
@@ -38,8 +38,7 @@ class SurvivalBuildStructureWalker<T> implements IStructureWalker<T> {
if (check) element.check(object, world, x, y, z);
return ++built < elementBudget;
case REJECT:
if (ConstructableUtility.redBrokenOne)
StructureLibAPI.updateHintParticleTint(actor, world, x, y, z, new short[] {255, 128, 128, 0});
StructureLibAPI.updateHintParticleTint(actor, world, x, y, z, new short[] {255, 128, 128, 0});
return false;
case ACCEPT_STOP:
if (check) element.check(object, world, x, y, z);