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