Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
5788ae70ef
Commit
2d9c201803
@ -75,11 +75,7 @@ public class TNTElement implements SimulatorElement {
|
||||
this.xVelocity = yapionObject.getBooleanOrDefault("xVelocity", false);
|
||||
this.yVelocity = yapionObject.getBooleanOrDefault("yVelocity", false);
|
||||
this.zVelocity = yapionObject.getBooleanOrDefault("zVelocity", false);
|
||||
if (yapionObject.containsKey("order", Integer.class)) {
|
||||
this.order = yapionObject.getIntOrDefault("order", 0) == 0 ? Material.REPEATER : Material.COMPARATOR;
|
||||
} else {
|
||||
this.order = Material.valueOf(yapionObject.getStringOrDefault("order", yapionObject.getBooleanOrDefault("comparator", false) ? Material.COMPARATOR.name() : Material.REPEATER.name()));
|
||||
}
|
||||
this.material = Material.valueOf(yapionObject.getStringOrDefault("material", Material.TNT.name()));
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren