mirror of
https://github.com/SPAWNRYS-ban/FUCK-CustomDiscs.git
synced 2025-12-10 05:19:43 +05:00
Fixing bug
This commit is contained in:
@@ -103,7 +103,6 @@ public class PlayerManager {
|
||||
if (playerMap.containsValue(playerReference)) {
|
||||
playerMap.remove(id);
|
||||
}
|
||||
System.out.println(playerMap);
|
||||
});
|
||||
synchronized (stopped) {
|
||||
if (!stopped.get()) {
|
||||
|
||||
@@ -145,7 +145,8 @@ public class JukeBox implements Listener{
|
||||
}
|
||||
|
||||
public boolean isCustomMusicDisc(ItemStack itemStack) {
|
||||
if (itemStack==null) return false;
|
||||
if (itemStack == null) return false;
|
||||
if (itemStack.getItemMeta() == null) return false;
|
||||
return itemStack.getItemMeta().getPersistentDataContainer().has(new NamespacedKey(customDiscs, "customdisc"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user