Fix timing NPE in onEntityDamage.
This commit is contained in:
parent
671d63a09b
commit
15b253130e
|
@ -308,6 +308,7 @@ public class EntityEventHandler implements Listener {
|
|||
GDTimings.ENTITY_DAMAGE_EVENT.startTiming();
|
||||
final ThrownPotion thrownPotion = event.getEntity();
|
||||
if (event.getAffectedEntities().isEmpty()) {
|
||||
GDTimings.ENTITY_DAMAGE_EVENT.stopTiming();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue