Remove unused Feature variable

This commit is contained in:
dfsek 2020-11-17 13:44:23 -07:00
parent fde8fd95f2
commit 291d0aaf1c
2 changed files with 2 additions and 5 deletions

View File

@ -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<Material> on = ConfigUtil.toBlockData((List<String>) items.get("spawnable-on"), "SpawnableOn", "");
Set<Material> in = ConfigUtil.toBlockData((List<String>) 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);
}

View File

@ -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<Material> in;
private final Set<Material> stand;
private final int inSize;
public EntityFeature(EntityType type, Range amount, int attempts, Set<Material> stand, Set<Material> in, int inSize) {
public EntityFeature(EntityType type, Range amount, Set<Material> stand, Set<Material> in, int inSize) {
this.type = type;
this.amount = amount;
this.attempts = attempts;
this.in = in;
this.stand = stand;
this.inSize = inSize;