summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-08-08 10:16:06 +0200
committersnowleo <schneeleo@gmail.com>2012-08-08 10:16:06 +0200
commit32240cd00db8c8ea270a26c39dcd9e45a2ff58b5 (patch)
tree8010752cc4bf32483a438d47ea40e428cf5034b3
parentba6cc5a9ee7175edb4986a732c96adaef7d09dd9 (diff)
downloadEssentials-32240cd00db8c8ea270a26c39dcd9e45a2ff58b5.tar
Essentials-32240cd00db8c8ea270a26c39dcd9e45a2ff58b5.tar.gz
Essentials-32240cd00db8c8ea270a26c39dcd9e45a2ff58b5.tar.lz
Essentials-32240cd00db8c8ea270a26c39dcd9e45a2ff58b5.tar.xz
Essentials-32240cd00db8c8ea270a26c39dcd9e45a2ff58b5.zip
Fix teleports on beds
-rw-r--r--Essentials/src/com/earth2me/essentials/Util.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Util.java b/Essentials/src/com/earth2me/essentials/Util.java
index 4f8f10887..c327c164b 100644
--- a/Essentials/src/com/earth2me/essentials/Util.java
+++ b/Essentials/src/com/earth2me/essentials/Util.java
@@ -376,6 +376,11 @@ public class Util
{
return true;
}
+
+ if (below.getType() == Material.BED)
+ {
+ return true;
+ }
if ((!AIR_MATERIALS.contains(world.getBlockAt(x, y, z).getType().getId()))
|| (!AIR_MATERIALS.contains(world.getBlockAt(x, y + 1, z).getType().getId())))