Dont have my pc, have to do this from github

1/2
This commit is contained in:
Seth 2020-07-28 14:55:38 -07:00 committed by GitHub
parent ab660a7ca7
commit 9ecfe703cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,16 +59,7 @@ public class InteractBlocker extends FreedomService
public void onBedEnter(PlayerBedEnterEvent event) public void onBedEnter(PlayerBedEnterEvent event)
{ {
Player player = event.getPlayer(); Player player = event.getPlayer();
if (event.getBed().getBiome().equals(Biome.NETHER_WASTES) if (Groups.EXPLOSIVE_BED_BIOMES.contains(event.getBed().getBiome()))
|| event.getBed().getBiome().equals(Biome.CRIMSON_FOREST)
|| event.getBed().getBiome().equals(Biome.SOUL_SAND_VALLEY)
|| event.getBed().getBiome().equals(Biome.WARPED_FOREST)
|| event.getBed().getBiome().equals(Biome.BASALT_DELTAS)
|| event.getBed().getBiome().equals(Biome.END_BARRENS)
|| event.getBed().getBiome().equals(Biome.END_HIGHLANDS)
|| event.getBed().getBiome().equals(Biome.END_MIDLANDS)
|| event.getBed().getBiome().equals(Biome.THE_END)
|| event.getBed().getBiome().equals(Biome.SMALL_END_ISLANDS))
{ {
player.sendMessage(ChatColor.RED + "You may not sleep here."); player.sendMessage(ChatColor.RED + "You may not sleep here.");
event.setCancelled(true); event.setCancelled(true);