diff --git a/README.md b/README.md
index 9525214f..9c183078 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,7 @@ Instead of referencing the internals of the implementation directly, DungeonsXL
The shaded version of DXL (standard version) contains this library, while the original version needs it as an external plugin.
Have a look at the [installation instructions](../../wiki/getting-started#installation) for detailed information.
-DungeonsXL currently uses BRCommons 0.5.
+DungeonsXL currently uses BRCommons 0.5.1.
### Java
7 and higher
diff --git a/pom.xml b/pom.xml
index e711e68d..4bb7a99a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
io.github.dre2n
dungeonsxl
- 0.11-SNAPSHOT
+ 0.11
jar
DungeonsXL
https://dre2n.github.io
diff --git a/src/main/java/io/github/dre2n/dungeonsxl/listener/EntityListener.java b/src/main/java/io/github/dre2n/dungeonsxl/listener/EntityListener.java
index 32b914b4..36825a80 100644
--- a/src/main/java/io/github/dre2n/dungeonsxl/listener/EntityListener.java
+++ b/src/main/java/io/github/dre2n/dungeonsxl/listener/EntityListener.java
@@ -38,7 +38,6 @@ import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.CreatureSpawnEvent;
-import org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason;
import org.bukkit.event.entity.EntityCombustByEntityEvent;
import org.bukkit.event.entity.EntityCombustEvent;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
@@ -71,9 +70,12 @@ public class EntityListener implements Listener {
GameWorld gameWorld = GameWorld.getByWorld(world);
if (editWorld != null || gameWorld != null) {
- if (event.getSpawnReason() == SpawnReason.CHUNK_GEN || event.getSpawnReason() == SpawnReason.BREEDING || event.getSpawnReason() == SpawnReason.NATURAL
- || event.getSpawnReason() == SpawnReason.DEFAULT) {
- event.setCancelled(true);
+ switch (event.getSpawnReason()) {
+ case CHUNK_GEN:
+ case JOCKEY:
+ case MOUNT:
+ case NATURAL:
+ event.setCancelled(true);
}
}
}