1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-27 00:15:23 +02:00

Fix teleports on beds

This commit is contained in:
snowleo
2012-08-08 10:16:06 +02:00
parent ba6cc5a9ee
commit 32240cd00d

View File

@@ -377,6 +377,11 @@ public class Util
return true; return true;
} }
if (below.getType() == Material.BED)
{
return true;
}
if ((!AIR_MATERIALS.contains(world.getBlockAt(x, y, z).getType().getId())) if ((!AIR_MATERIALS.contains(world.getBlockAt(x, y, z).getType().getId()))
|| (!AIR_MATERIALS.contains(world.getBlockAt(x, y + 1, z).getType().getId()))) || (!AIR_MATERIALS.contains(world.getBlockAt(x, y + 1, z).getType().getId())))
{ {