mirror of
https://github.com/SPAWNRYS-ban/FUCK-CustomDiscs.git
synced 2025-12-10 05:19:43 +05:00
Bug Fix
Discs from hoppers not applying custom range.
This commit is contained in:
@@ -55,7 +55,7 @@ public class HopperManager implements Listener {
|
||||
|
||||
PersistentDataContainer persistentDataContainer = event.getItem().getItemMeta().getPersistentDataContainer();
|
||||
float range = CustomDiscs.getInstance().musicDiscDistance;
|
||||
NamespacedKey customSoundRangeKey = new NamespacedKey(customDiscs, "customsoundrange");
|
||||
NamespacedKey customSoundRangeKey = new NamespacedKey(customDiscs, "range");
|
||||
|
||||
if(persistentDataContainer.has(customSoundRangeKey, PersistentDataType.FLOAT)) {
|
||||
range = Math.min(persistentDataContainer.get(customSoundRangeKey, PersistentDataType.FLOAT), CustomDiscs.getInstance().musicDiscMaxDistance);
|
||||
|
||||
Reference in New Issue
Block a user