From 48fd319ff7f6cefbbb2689aa3b1a66a587f4ad09 Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Tue, 15 Mar 2016 16:18:23 -0700 Subject: [PATCH] Fixed /RestoreNature having no effect in 1.9. The Spigot team broke this. --- .../GriefPrevention/RestoreNatureProcessingTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/ryanhamshire/GriefPrevention/RestoreNatureProcessingTask.java b/src/me/ryanhamshire/GriefPrevention/RestoreNatureProcessingTask.java index 22e604e..68e52ac 100644 --- a/src/me/ryanhamshire/GriefPrevention/RestoreNatureProcessingTask.java +++ b/src/me/ryanhamshire/GriefPrevention/RestoreNatureProcessingTask.java @@ -416,7 +416,7 @@ class RestoreNatureProcessingTask implements Runnable if(block.typeId == Material.STONE.getId() || block.typeId == Material.GRAVEL.getId() || block.typeId == Material.SOIL.getId() || block.typeId == Material.DIRT.getId() || block.typeId == Material.SANDSTONE.getId()) { - if(this.biome == Biome.DESERT || this.biome == Biome.DESERT_HILLS || this.biome == Biome.BEACH) + if(this.biome == Biome.DESERT || this.biome == Biome.DESERT_HILLS || this.biome == Biome.BEACHES) { this.snapshots[x][y][z].typeId = Material.SAND.getId(); } @@ -785,7 +785,7 @@ class RestoreNatureProcessingTask implements Runnable } //these are unnatural in sandy biomes, but not elsewhere - if(biome == Biome.DESERT || biome == Biome.DESERT_HILLS || biome == Biome.BEACH || environment != Environment.NORMAL) + if(biome == Biome.DESERT || biome == Biome.DESERT_HILLS || biome == Biome.BEACHES || environment != Environment.NORMAL) { playerBlocks.add(Material.LEAVES.getId()); playerBlocks.add(Material.LEAVES_2.getId());