Fix NPE in LootModule

This commit is contained in:
AlexTheCoder 2017-07-07 07:13:31 -04:00
parent f73c78809a
commit dd12824402

View File

@ -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);