mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
debug tweaks
This commit is contained in:
parent
270298c265
commit
9266a54fce
@ -92,6 +92,13 @@ public class SmeltingTracker {
|
||||
if(!Permissions.skillEnabled(player, PrimarySkillType.SMELTING))
|
||||
return;
|
||||
|
||||
//Don't swap ownership if its the same player
|
||||
if(getFurnaceOwner(furnace) != null) {
|
||||
if(getFurnaceOwner(furnace).getUniqueId().equals(player.getUniqueId()))
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
changeFurnaceOwnership(furnace, player);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user