MasterCake 2 dias atrás
pai
commit
8cbbe4e102
1 arquivos alterados com 3 adições e 0 exclusões
  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());