summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src
diff options
context:
space:
mode:
authorsnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-26 14:50:13 +0000
committersnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-26 14:50:13 +0000
commit0b8f6e26945fd277f4acf08f61b4481fe0b66f2e (patch)
treec5c067a3012146da499f11a041d969751c59db28 /EssentialsProtect/src
parent008a98d2419c5ae037119f18cf719c74078b164e (diff)
downloadEssentials-0b8f6e26945fd277f4acf08f61b4481fe0b66f2e.tar
Essentials-0b8f6e26945fd277f4acf08f61b4481fe0b66f2e.tar.gz
Essentials-0b8f6e26945fd277f4acf08f61b4481fe0b66f2e.tar.lz
Essentials-0b8f6e26945fd277f4acf08f61b4481fe0b66f2e.tar.xz
Essentials-0b8f6e26945fd277f4acf08f61b4481fe0b66f2e.zip
CB#812
Fix for change in the minecraft class structure. Do not use this yet! git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1538 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsProtect/src')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
index 114dd0cb4..48aae97e5 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
@@ -13,6 +13,7 @@ import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.craftbukkit.CraftServer;
+import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.craftbukkit.entity.CraftPlayer;
import org.bukkit.entity.Creeper;
import org.bukkit.entity.Entity;
@@ -216,7 +217,7 @@ public class EssentialsProtectEntityListener extends EntityListener
}
}
- ((CraftServer)parent.getServer()).getHandle().a(loc.getX(), loc.getY(), loc.getZ(), 64.0D,
+ ((CraftServer)parent.getServer()).getHandle().a(loc.getX(), loc.getY(), loc.getZ(), 64.0D, ((CraftWorld)loc.getWorld()).getHandle().worldProvider.dimension,
new Packet60Explosion(loc.getX(), loc.getY(), loc.getZ(), 3.0f, set));
event.setCancelled(true);
return;