mirror of
https://github.com/Flowsqy/ShopChest.git
synced 2024-11-29 01:35:29 +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)
|
||||
|
||||
private final WGFlagRegistry flagRegistry;
|
||||
private WGFlagRegistry flagRegistry;
|
||||
|
||||
public WGLoader(HookManager hookManager, ExternalLoadData loadData) {
|
||||
super(hookManager, loadData);
|
||||
this.flagRegistry = new WGFlagRegistry();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -40,6 +39,9 @@ public class WGLoader extends ExternalLoader {
|
||||
@Override
|
||||
public void load() {
|
||||
// Register flags
|
||||
if (flagRegistry == null) {
|
||||
flagRegistry = new WGFlagRegistry();
|
||||
}
|
||||
flagRegistry.initialize(loadData);
|
||||
flagRegistry.register();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user