mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Fixed NPE in player inventory + don't ignore the cancel state of world unloads
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
2f98915d03
commit
aa9a64c1d7
@ -596,7 +596,7 @@ public final class CraftServer implements Server {
|
||||
}
|
||||
|
||||
WorldUnloadEvent e = new WorldUnloadEvent(handle.getWorld());
|
||||
pluginManager.callEvent(new WorldUnloadEvent(handle.getWorld()));
|
||||
pluginManager.callEvent(e);
|
||||
|
||||
if (e.isCancelled()) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user