mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-05 02:11:06 +01:00
Added Slime check to the Entity... more as a precaution till I'm sure
it exists within Monster etc...
This commit is contained in:
parent
4e8d8626a7
commit
26ee10b163
@ -12,6 +12,7 @@ import org.bukkit.entity.Ghast;
|
|||||||
import org.bukkit.entity.Monster;
|
import org.bukkit.entity.Monster;
|
||||||
import org.bukkit.entity.PigZombie;
|
import org.bukkit.entity.PigZombie;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
import org.bukkit.entity.Slime;
|
||||||
import org.bukkit.event.entity.CreatureSpawnEvent;
|
import org.bukkit.event.entity.CreatureSpawnEvent;
|
||||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||||
import org.bukkit.event.entity.EntityDamageByProjectileEvent;
|
import org.bukkit.event.entity.EntityDamageByProjectileEvent;
|
||||||
@ -115,7 +116,7 @@ public class MVEntityListener extends EntityListener {
|
|||||||
/**
|
/**
|
||||||
* Monster Handling
|
* Monster Handling
|
||||||
*/
|
*/
|
||||||
if(event.getEntity() instanceof Monster || event.getEntity() instanceof Ghast || event.getEntity() instanceof PigZombie){
|
if(event.getEntity() instanceof Monster || event.getEntity() instanceof Ghast || event.getEntity() instanceof PigZombie || event.getEntity() instanceof Slime){
|
||||||
// If we have no exceptions for Monsters then we just follow the Spawn setting.
|
// If we have no exceptions for Monsters then we just follow the Spawn setting.
|
||||||
if(mvworld.monsterList.size()<=0){
|
if(mvworld.monsterList.size()<=0){
|
||||||
if(mvworld.monsters){
|
if(mvworld.monsters){
|
||||||
|
Loading…
Reference in New Issue
Block a user