force load before process event

Former-commit-id: 45ba977b9e98a25934f38856af257b113ae5d086 [formerly a578e5b5ba698aeee434af6ef5de78df7c22a2a2]
Former-commit-id: 0d172d394797100aa1967993b783c0361cd6a8b8
This commit is contained in:
Ghost_chu committed 2019-05-07 11:14:01 +08:00
1 parent c74b46e300
commit a1936d5745
1 file changed
+2 -1
@@ -19,8 +19,9 @@ public class ChunkListener implements Listener {
this.plugin = plugin;
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onChunkLoad(ChunkLoadEvent e) {
e.getChunk().load();
Chunk c = e.getChunk();
if (plugin.getShopManager().getShops() == null)
return;