Second possible fix to broken config option

Added check for config option in revertBlock
This commit is contained in:
AlexTheCoder 2014-08-26 14:34:16 -04:00
parent 659bcb1938
commit b9d085915c

View file

@ -1690,6 +1690,10 @@ public class Methods {
}
public static boolean revertBlock(Block block) {
byte full = 0x0;
if(!ProjectKorra.plugin.getConfig().getBoolean("Properties.Earth.RevertEarthbending")) {
movedearth.remove(block);
return false;
}
if (movedearth.containsKey(block)) {
Information info = movedearth.get(block);
Block sourceblock = info.getState().getBlock();