Fix NPE in LootModule
This commit is contained in:
parent
f73c78809a
commit
dd12824402
@ -672,6 +672,10 @@ public class LootModule extends MiniPlugin
|
||||
{
|
||||
for (LootItemReward reward : _itemRewards)
|
||||
{
|
||||
if (reward.getPlayer() == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (reward.getPlayer().equals(event.getEntity()))
|
||||
{
|
||||
reward.death(event);
|
||||
|
Loading…
Reference in New Issue
Block a user