mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-25 02:28:12 +01:00
parent
35d326d74f
commit
e8ede59331
@ -135,11 +135,15 @@ public class LocaleQuery {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
matKey = queryMaterial(material);
|
||||
} catch (Exception ex) {
|
||||
plugin.getLogger().severe("Unable to query Material: " + material.name());
|
||||
return false;
|
||||
if (Bukkit.createBlockData(material) instanceof org.bukkit.block.data.Ageable) {
|
||||
matKey = "block.minecraft." + material.name().toLowerCase();
|
||||
} else {
|
||||
try {
|
||||
matKey = queryMaterial(material);
|
||||
} catch (Exception ex) {
|
||||
plugin.getLogger().severe("Unable to query Material: " + material.name());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (meta != null && meta instanceof PotionMeta) {
|
||||
matKey = "item.minecraft.potion.effect." + ((PotionMeta)meta).getBasePotionData().getType().name()
|
||||
|
Loading…
Reference in New Issue
Block a user