Check before assuming that material is a block, fixes #981

This commit is contained in:
PikaMug 2019-10-23 14:19:08 -04:00
parent e8ede59331
commit 99af61d581

View File

@ -135,7 +135,7 @@ public class LocaleQuery {
}
}
} else {
if (Bukkit.createBlockData(material) instanceof org.bukkit.block.data.Ageable) {
if (material.isBlock() && Bukkit.createBlockData(material) instanceof org.bukkit.block.data.Ageable) {
matKey = "block.minecraft." + material.name().toLowerCase();
} else {
try {