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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue