1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-27 00:15:23 +02:00

Fill out default spawn prevent values in protect

This commit is contained in:
ementalo
2012-06-28 13:59:38 +01:00
parent 4540b7144d
commit 93e80d7459

View File

@@ -17,7 +17,7 @@ public class Prevent implements StorageObject
{ {
@Comment("Which blocks should a piston not be able to push?") @Comment("Which blocks should a piston not be able to push?")
@ListType(Material.class) @ListType(Material.class)
private Set<Material> pistonPush = new HashSet<Material>(); private Set<Material> pistonPush = new HashSet<Material>();
private boolean lavaFlow = false; private boolean lavaFlow = false;
private boolean waterFlow = false; private boolean waterFlow = false;
// private boolean waterbucketFlow = false; TODO: Test if this still works // private boolean waterbucketFlow = false; TODO: Test if this still works
@@ -42,10 +42,16 @@ public class Prevent implements StorageObject
@MapKeyType(EntityType.class) @MapKeyType(EntityType.class)
@MapValueType(Boolean.class) @MapValueType(Boolean.class)
private Map<EntityType, Boolean> spawn = new HashMap<EntityType, Boolean>(); private Map<EntityType, Boolean> spawn = new HashMap<EntityType, Boolean>();
public Prevent() public Prevent()
{ {
spawn.put(EntityType.PIG, false); for (EntityType t : EntityType.values())
{
if (t.isAlive())
{
spawn.put(t, false);
}
}
pistonPush.add(Material.GLASS); pistonPush.add(Material.GLASS);
} }
} }