Skip to content

Commit

Permalink
Use correct method to get the item thrower
Browse files Browse the repository at this point in the history
  • Loading branch information
Krakenied committed Sep 11, 2024
1 parent 20addce commit 97e32fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void onEntityPickupItem(final @NotNull EntityPickupItemEvent event) {
final LivingEntity entity = event.getEntity();

if (entity instanceof final Piglin piglin) {
final UUID throwerId = event.getItem().getOwner();
final UUID throwerId = event.getItem().getThrower();

if (throwerId != null) {
this.piglin2ThrowerIdMap.put(piglin, throwerId);
Expand Down

0 comments on commit 97e32fe

Please sign in to comment.