Update PickupHandler.java
This commit is contained in:
parent
d35cb4ed72
commit
e79e52cf65
|
|
@ -176,7 +176,7 @@ public class PickupHandler {
|
||||||
{
|
{
|
||||||
EntityReference<LivingEntity> ref = tame.getOwnerReference();
|
EntityReference<LivingEntity> ref = tame.getOwnerReference();
|
||||||
if (ref != null) {
|
if (ref != null) {
|
||||||
UUID owner = tame.getOwnerReference().getUUID();
|
UUID owner = ref.getUUID();
|
||||||
UUID playerID = player.getGameProfile().id();
|
UUID playerID = player.getGameProfile().id();
|
||||||
if (!owner.equals(playerID))
|
if (!owner.equals(playerID))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user