Relight after completing P2 operations

teporarily fix #629
This commit is contained in:
dordsor21
2020-09-18 12:38:17 +01:00
parent 7375827844
commit 8e8bd810b5
2 changed files with 45 additions and 5 deletions

View File

@ -1,7 +1,32 @@
package com.boydti.fawe.object;
import java.util.HashMap;
import java.util.Map;
public enum RelightMode {
NONE, // no relighting
OPTIMAL, // relight changed light sources and changed blocks
ALL // relight every single block
NONE(0), // no relighting
OPTIMAL(1), // relight changed light sources and changed blocks
ALL(2); // relight every single block
private static final Map<Integer, RelightMode> map = new HashMap<>();
static {
for (RelightMode mode : RelightMode.values()) {
map.put(mode.mode, mode);
}
}
private final int mode;
RelightMode(int mode) {
this.mode = mode;
}
public static RelightMode valueOf(int mode) {
return map.get(mode);
}
public int getMode() {
return mode;
}
}