MasterCake hai 2 días
pai
achega
8cbbe4e102
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/main/java/xyz/spaceio/customoregen/Events.java

+ 3 - 0
src/main/java/xyz/spaceio/customoregen/Events.java

@@ -109,6 +109,9 @@ public class Events implements Listener {
 	 */
 	@EventHandler
 	public void onBlockFromToEvent(BlockFromToEvent event) {
+		if (plugin.getDisabledWorlds().contains(event.getBlock().getLocation().getWorld().getName())) {
+			return;
+		}
 		if(this.isGenerator(event)) {
 			event.setCancelled(true);
 			GeneratorConfig generatorConfig = this.getGeneratorConfigAtLocation(event.getBlock().getLocation());