mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
Second possible fix to broken config option
Added check for config option in revertBlock
This commit is contained in:
parent
659bcb1938
commit
b9d085915c
1 changed files with 4 additions and 0 deletions
|
@ -1690,6 +1690,10 @@ public class Methods {
|
||||||
}
|
}
|
||||||
public static boolean revertBlock(Block block) {
|
public static boolean revertBlock(Block block) {
|
||||||
byte full = 0x0;
|
byte full = 0x0;
|
||||||
|
if(!ProjectKorra.plugin.getConfig().getBoolean("Properties.Earth.RevertEarthbending")) {
|
||||||
|
movedearth.remove(block);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (movedearth.containsKey(block)) {
|
if (movedearth.containsKey(block)) {
|
||||||
Information info = movedearth.get(block);
|
Information info = movedearth.get(block);
|
||||||
Block sourceblock = info.getState().getBlock();
|
Block sourceblock = info.getState().getBlock();
|
||||||
|
|
Loading…
Reference in a new issue