mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-18 10:32:30 +00:00
Remove unused Feature variable
This commit is contained in:
parent
fde8fd95f2
commit
291d0aaf1c
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user