mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-18 15:18:34 +01:00
Check before assuming that material is a block, fixes #981
This commit is contained in:
parent
e8ede59331
commit
99af61d581
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user