mirror of https://github.com/PikaMug/Quests.git
Update locale library, fixes #2099
This commit is contained in:
parent
85d0f035a6
commit
b2b20144d0
|
@ -154,7 +154,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.PikaMug</groupId>
|
<groupId>com.github.PikaMug</groupId>
|
||||||
<artifactId>LocaleLib</artifactId>
|
<artifactId>LocaleLib</artifactId>
|
||||||
<version>3.2</version>
|
<version>3.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>xyz.upperlevel.spigot.book</groupId>
|
<groupId>xyz.upperlevel.spigot.book</groupId>
|
||||||
|
|
|
@ -186,12 +186,12 @@ public class ItemListener implements Listener {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWaterBottle(ItemStack item) {
|
public boolean isWaterBottle(final ItemStack item) {
|
||||||
if (item == null) {
|
if (item == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (item.getType().equals(Material.POTION)) {
|
if (item.getType().equals(Material.POTION)) {
|
||||||
PotionMeta meta = (PotionMeta) item.getItemMeta();
|
final PotionMeta meta = (PotionMeta) item.getItemMeta();
|
||||||
if (meta == null) {
|
if (meta == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue