Mod load fixes

This commit is contained in:
Anuken
2022-04-18 17:22:47 -04:00
parent 5e349e237a
commit 5721cc75b6
5 changed files with 6 additions and 8 deletions

View File

@@ -137,7 +137,7 @@ public class ContentParser{
}
var bc = resolve(data.getString("type", ""), DrawDefault.class);
data.remove("type");
var result = make(bc);
DrawBlock result = make(bc);
readFields(result, data);
return result;
});

View File

@@ -313,7 +313,7 @@ public class Block extends UnlockableContent implements Senseable{
/** Configuration handlers by type. */
public ObjectMap<Class<?>, Cons2> configurations = new ObjectMap<>();
/** Consumption filters. */
public boolean[] itemFilter, liquidFilter;
public boolean[] itemFilter = {}, liquidFilter = {};
/** Array of consumers used by this block. Only populated after init(). */
public Consume[] consumers = {}, optionalConsumers = {}, nonOptionalConsumers = {}, updateConsumers = {};
/** Set to true if this block has any consumers in its array. */

View File

@@ -8,4 +8,8 @@ public class ConsumeCoolant extends ConsumeLiquidFilter{
this.filter = liquid -> liquid.coolant && liquid.temperature <= maxTemp && liquid.flammability < maxFlammability;
this.amount = amount;
}
public ConsumeCoolant(){
this(1f);
}
}