Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Nov 17, 2024
1 parent 47d7d1f commit a83e831
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import java.util.Collection;
import java.util.UUID;

import me.mrCookieSlime.Slimefun.api.inventory.BlockMenu;
import org.bukkit.Bukkit;
import org.bukkit.Effect;
import org.bukkit.Material;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void onPlayerBreak(BlockBreakEvent e, ItemStack item, List<ItemStack> dro

var uniData = StorageCacheUtils.getUniversalBlock(b);
if (!e.getPlayer().hasPermission("slimefun.android.bypass")
&& !e.getPlayer().getUniqueId().equals(uniData.getData("owner"))) {
&& !e.getPlayer().getUniqueId().toString().equals(uniData.getData("owner"))) {
// The Player is not allowed to break this android
e.setCancelled(true);
return;
Expand Down

0 comments on commit a83e831

Please sign in to comment.