mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +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());
|
WorldUnloadEvent e = new WorldUnloadEvent(handle.getWorld());
|
||||||
pluginManager.callEvent(new WorldUnloadEvent(handle.getWorld()));
|
pluginManager.callEvent(e);
|
||||||
|
|
||||||
if (e.isCancelled()) {
|
if (e.isCancelled()) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user