Update PickupHandler.java

This commit is contained in:
Hanro50 2025-10-15 22:03:53 +02:00
parent d35cb4ed72
commit e79e52cf65

View File

@ -176,7 +176,7 @@ public class PickupHandler {
{
EntityReference<LivingEntity> ref = tame.getOwnerReference();
if (ref != null) {
UUID owner = tame.getOwnerReference().getUUID();
UUID owner = ref.getUUID();
UUID playerID = player.getGameProfile().id();
if (!owner.equals(playerID))
return false;