diff options
author | snowleo <schneeleo@gmail.com> | 2011-06-26 18:15:20 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-06-26 18:15:20 +0200 |
commit | 1c11ab0957e2132528dd4ad69564217345fa8cfe (patch) | |
tree | 3b9763dc753183179b8ac087565b79d35f622db1 | |
parent | fafd9b20a90ef237e193b73dab743690ee4d7dd3 (diff) | |
download | Essentials-1c11ab0957e2132528dd4ad69564217345fa8cfe.tar Essentials-1c11ab0957e2132528dd4ad69564217345fa8cfe.tar.gz Essentials-1c11ab0957e2132528dd4ad69564217345fa8cfe.tar.lz Essentials-1c11ab0957e2132528dd4ad69564217345fa8cfe.tar.xz Essentials-1c11ab0957e2132528dd4ad69564217345fa8cfe.zip |
Fix Mop spawning
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Mob.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Mob.java b/Essentials/src/com/earth2me/essentials/Mob.java index 3c16ae01a..c7b0ca320 100644 --- a/Essentials/src/com/earth2me/essentials/Mob.java +++ b/Essentials/src/com/earth2me/essentials/Mob.java @@ -84,7 +84,7 @@ public enum Mob { try { - return player.getWorld().spawn(player.getLocation(), (Class<Entity>)ClassLoader.getSystemClassLoader().loadClass("net.minecraft.server.Entity" + entityClass)); + return player.getWorld().spawn(player.getLocation(), (Class<Entity>)ClassLoader.getSystemClassLoader().loadClass("org.bukkit.craftbukkit.entity.Craft" + craftClass)); //WorldServer world = ((org.bukkit.craftbukkit.CraftWorld)player.getWorld()).getHandle(); //Constructor<CraftEntity> craft = (Constructor<CraftEntity>)ClassLoader.getSystemClassLoader().loadClass("org.bukkit.craftbukkit.entity.Craft" + craftClass).getConstructors()[0]; //Constructor<Entity> entity = (Constructor<Entity>)ClassLoader.getSystemClassLoader().loadClass("net.minecraft.server.Entity" + entityClass).getConstructors()[0]; |