Commit d19dd50f authored by Linus K.'s avatar Linus K.
Browse files

Remove debug messages

parent 0fe8d2ee
Pipeline #130 passed with stage
in 42 seconds
......@@ -33,7 +33,6 @@ class KillCatsListener: Listener {
.filter { ! it.isTamed }
.filter { ! isTargeted(it) }
.forEach { cat ->
Bukkit.broadcastMessage("POSSIBLE CAT")
val newKiller = cat.world.entities
.asSequence()
.filterIsInstance<Creature>()
......@@ -41,7 +40,6 @@ class KillCatsListener: Listener {
.filter { it.location.distance(cat.location) < 25.0 }
.minBy { it.location.distance(cat.location) }
if(newKiller != null) {
Bukkit.broadcastMessage("ATTACK CAT")
val oldHealth = newKiller.health
cat.attack(newKiller)
newKiller.health = oldHealth
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment