Skip to content

Commit

Permalink
fix(forge16): prevent NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
danorris709 committed Aug 24, 2022
1 parent ff301cd commit 99cefb8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public void onPixelmonSpawn(SpawnEvent event) {
return;
}

UtilConcurrency.runAsync(() -> {
PixelmonEntity pixelmon = (PixelmonEntity) entity;
PixelmonEntity pixelmon = (PixelmonEntity) entity;

if (pixelmon.getOwner() != null) {
return;
}
if (pixelmon.getOwner() != null) {
return;
}

UtilConcurrency.runAsync(() -> {
for (BetterPokeBroadcasterConfig.BroadcastOption option : BetterPokeBroadcaster.getInstance().getConfig().getOptions()) {
if (!option.getSpec().matches(pixelmon)) {
continue;
Expand Down

0 comments on commit 99cefb8

Please sign in to comment.