mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Fix teleports on beds
This commit is contained in:
parent
ba6cc5a9ee
commit
32240cd00d
1 changed files with 5 additions and 0 deletions
|
@ -377,6 +377,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())))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue