Spigot-1.13 support.

This commit is contained in:
cnaude 2018-07-17 21:03:13 -07:00
parent e3f4a89c1d
commit 0ea61ea8ae

View File

@ -51,7 +51,7 @@ public class OreBroadcastListener implements Listener {
public void onOreBroadcastEvent(OreBroadcastEvent e) {
String blockName;
if (e.getBlockMined().getType().equals(Material.GLOWING_REDSTONE_ORE)) {
if (e.getBlockMined().getType().equals(Material.LEGACY_GLOWING_REDSTONE_ORE)) {
blockName = "redstone";
} else {
blockName = e.getBlockMined().getType().name().toLowerCase().replace("_ore", "");