diff --git a/src/main/java/com/dfsek/terra/config/genconfig/structure/EntityFeatureConfig.java b/src/main/java/com/dfsek/terra/config/genconfig/structure/EntityFeatureConfig.java index bd8cbfe7f..264759446 100644 --- a/src/main/java/com/dfsek/terra/config/genconfig/structure/EntityFeatureConfig.java +++ b/src/main/java/com/dfsek/terra/config/genconfig/structure/EntityFeatureConfig.java @@ -38,7 +38,6 @@ public class EntityFeatureConfig implements FeatureConfig { throw new InvalidConfigurationException("Error in Entity Configuration!"); } - int attempts = (Integer) items.get("attempts"); int height = (Integer) items.get("in-height"); Range amount; @@ -52,7 +51,7 @@ public class EntityFeatureConfig implements FeatureConfig { Set on = ConfigUtil.toBlockData((List) items.get("spawnable-on"), "SpawnableOn", ""); Set in = ConfigUtil.toBlockData((List) items.get("spawnable-in"), "SpawnableIn", ""); - this.feature = new EntityFeature(type, amount, attempts, on, in, height); + this.feature = new EntityFeature(type, amount, on, in, height); Debug.info("Loaded EntityFeature with type: " + type); } diff --git a/src/main/java/com/dfsek/terra/structure/features/EntityFeature.java b/src/main/java/com/dfsek/terra/structure/features/EntityFeature.java index bc1ab58bd..931a717ef 100644 --- a/src/main/java/com/dfsek/terra/structure/features/EntityFeature.java +++ b/src/main/java/com/dfsek/terra/structure/features/EntityFeature.java @@ -22,15 +22,13 @@ import java.util.Set; public class EntityFeature implements Feature { private final EntityType type; private final Range amount; - private final int attempts; private final Set in; private final Set stand; private final int inSize; - public EntityFeature(EntityType type, Range amount, int attempts, Set stand, Set in, int inSize) { + public EntityFeature(EntityType type, Range amount, Set stand, Set in, int inSize) { this.type = type; this.amount = amount; - this.attempts = attempts; this.in = in; this.stand = stand; this.inSize = inSize;