diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-06-03 20:11:20 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-06-03 20:11:20 +0000 |
commit | aef2dd35d6d574d4154cf283bb16f1d5bc38156b (patch) | |
tree | d6604192c478edf17505666e6572fca5dec30e55 | |
parent | e94a01b149464032ce9049b7800bb793d3bd25d8 (diff) | |
download | Essentials-aef2dd35d6d574d4154cf283bb16f1d5bc38156b.tar Essentials-aef2dd35d6d574d4154cf283bb16f1d5bc38156b.tar.gz Essentials-aef2dd35d6d574d4154cf283bb16f1d5bc38156b.tar.lz Essentials-aef2dd35d6d574d4154cf283bb16f1d5bc38156b.tar.xz Essentials-aef2dd35d6d574d4154cf283bb16f1d5bc38156b.zip |
Fix Spawner
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1580 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandspawner.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java b/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java index f351019bc..da0c0e274 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java @@ -6,6 +6,7 @@ import org.bukkit.Material; import org.bukkit.Server; import org.bukkit.block.Block; import org.bukkit.block.CreatureSpawner; +import org.bukkit.craftbukkit.block.CraftCreatureSpawner; import org.bukkit.entity.CreatureType; @@ -33,7 +34,7 @@ public class Commandspawner extends EssentialsCommand charge(user); try { - ((CreatureSpawner)target).setCreatureType(CreatureType.fromName(args[0])); + new CraftCreatureSpawner(target).setCreatureType(CreatureType.fromName(args[0])); } catch (Throwable ex) { |