From 9ecfe703cb5175a0a21fce99804b4fa1b43161f6 Mon Sep 17 00:00:00 2001 From: Seth <13510767+ZeroEpoch1969@users.noreply.github.com> Date: Tue, 28 Jul 2020 14:55:38 -0700 Subject: [PATCH] Dont have my pc, have to do this from github 1/2 --- .../totalfreedommod/blocking/InteractBlocker.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java b/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java index b5f5a410..f33e740b 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java @@ -59,16 +59,7 @@ public class InteractBlocker extends FreedomService public void onBedEnter(PlayerBedEnterEvent event) { Player player = event.getPlayer(); - if (event.getBed().getBiome().equals(Biome.NETHER_WASTES) - || 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)) + if (Groups.EXPLOSIVE_BED_BIOMES.contains(event.getBed().getBiome())) { player.sendMessage(ChatColor.RED + "You may not sleep here."); event.setCancelled(true);