mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-13 05:38:59 +00:00
Fix teleports on beds
This commit is contained in:
parent
ba6cc5a9ee
commit
32240cd00d
|
@ -376,6 +376,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())))
|
||||||
|
|
Loading…
Reference in a new issue