Improve break sound retrieval
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package net.nuggetmc.tplus.api;
|
||||
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.block.Block;
|
||||
|
||||
/**
|
||||
@@ -8,6 +7,4 @@ import org.bukkit.block.Block;
|
||||
*/
|
||||
public interface InternalBridge {
|
||||
void sendBlockDestructionPacket(short entityId, Block block, int progress);
|
||||
|
||||
Sound breakBlockSound(Block block);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.nuggetmc.tplus.api.agent.legacyagent;
|
||||
|
||||
import net.nuggetmc.tplus.api.TerminatorPlusAPI;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.block.Block;
|
||||
@@ -32,6 +31,6 @@ public class LegacyUtils {
|
||||
}
|
||||
|
||||
public static Sound breakBlockSound(Block block) {
|
||||
return TerminatorPlusAPI.getInternalBridge().breakBlockSound(block);
|
||||
return block.getBlockData().getSoundGroup().getBreakSound();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user