mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Spigot-1.13 support.
This commit is contained in:
parent
e3f4a89c1d
commit
0ea61ea8ae
@ -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", "");
|
||||
|
Loading…
Reference in New Issue
Block a user