mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixes #3902 - NPE in Inventory Listener
This commit is contained in:
parent
30df57fa35
commit
be8a2a4b07
@ -1,6 +1,7 @@
|
|||||||
Version 2.1.49
|
Version 2.1.49
|
||||||
Fixed a bug where falling blocks were not marked as unnatural in water
|
Fixed a bug where falling blocks were not marked as unnatural in water
|
||||||
Fixed a bug where Ability cooldowns were being called async when they are sync only
|
Fixed a bug where Ability cooldowns were being called async when they are sync only
|
||||||
|
Fixed NPE when checking inventory location
|
||||||
|
|
||||||
Version 2.1.48
|
Version 2.1.48
|
||||||
1.14 Support
|
1.14 Support
|
||||||
|
@ -397,6 +397,8 @@ public class InventoryListener implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||||
public void onInventoryMoveItemEvent(InventoryMoveItemEvent event) {
|
public void onInventoryMoveItemEvent(InventoryMoveItemEvent event) {
|
||||||
/* WORLD BLACKLIST CHECK */
|
/* WORLD BLACKLIST CHECK */
|
||||||
|
|
||||||
|
if(event.getSource().getLocation() != null)
|
||||||
if(WorldBlacklist.isWorldBlacklisted(event.getSource().getLocation().getWorld()))
|
if(WorldBlacklist.isWorldBlacklisted(event.getSource().getLocation().getWorld()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user