mirror of
https://github.com/Flowsqy/ShopChest.git
synced 2024-11-30 01:43:22 +01:00
Fix WorldGuard external hook error
This commit is contained in:
parent
d810f67091
commit
b3990566bb
@ -10,11 +10,10 @@ public class WGLoader extends ExternalLoader {
|
|||||||
|
|
||||||
// Maybe need to enable listener for deny message (see old listeners2)
|
// Maybe need to enable listener for deny message (see old listeners2)
|
||||||
|
|
||||||
private final WGFlagRegistry flagRegistry;
|
private WGFlagRegistry flagRegistry;
|
||||||
|
|
||||||
public WGLoader(HookManager hookManager, ExternalLoadData loadData) {
|
public WGLoader(HookManager hookManager, ExternalLoadData loadData) {
|
||||||
super(hookManager, loadData);
|
super(hookManager, loadData);
|
||||||
this.flagRegistry = new WGFlagRegistry();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -40,6 +39,9 @@ public class WGLoader extends ExternalLoader {
|
|||||||
@Override
|
@Override
|
||||||
public void load() {
|
public void load() {
|
||||||
// Register flags
|
// Register flags
|
||||||
|
if (flagRegistry == null) {
|
||||||
|
flagRegistry = new WGFlagRegistry();
|
||||||
|
}
|
||||||
flagRegistry.initialize(loadData);
|
flagRegistry.initialize(loadData);
|
||||||
flagRegistry.register();
|
flagRegistry.register();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user