Skip to content

Commit

Permalink
guh
Browse files Browse the repository at this point in the history
  • Loading branch information
Wide-Cat committed Oct 18, 2024
1 parent 7ea4436 commit 19abdaa
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,8 @@ private void onEntityAdded(EntityAddedEvent event) {
}
}

if (pearl.get()) {
if (event.entity instanceof EnderPearlEntity pearlEntity) {
pearlStartPosMap.put(pearlEntity.getId(), new Vec3d(pearlEntity.getX(), pearlEntity.getY(), pearlEntity.getZ()));
}
if (pearl.get() && event.entity instanceof EnderPearlEntity pearlEntity) {
pearlStartPosMap.put(pearlEntity.getId(), new Vec3d(pearlEntity.getX(), pearlEntity.getY(), pearlEntity.getZ()));
}
}

Expand Down Expand Up @@ -379,7 +377,6 @@ private void createJoinNotifications(PlayerListS2CPacket packet) {
+ Formatting.GRAY + " joined."
));
}

}
}

Expand Down

0 comments on commit 19abdaa

Please sign in to comment.