Update locale library, fixes #2099

This commit is contained in:
PikaMug 2023-05-07 14:16:27 -04:00
parent 85d0f035a6
commit b2b20144d0
2 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@
<dependency>
<groupId>com.github.PikaMug</groupId>
<artifactId>LocaleLib</artifactId>
<version>3.2</version>
<version>3.3</version>
</dependency>
<dependency>
<groupId>xyz.upperlevel.spigot.book</groupId>

View File

@ -186,12 +186,12 @@ public class ItemListener implements Listener {
return true;
}
public boolean isWaterBottle(ItemStack item) {
public boolean isWaterBottle(final ItemStack item) {
if (item == null) {
return false;
}
if (item.getType().equals(Material.POTION)) {
PotionMeta meta = (PotionMeta) item.getItemMeta();
final PotionMeta meta = (PotionMeta) item.getItemMeta();
if (meta == null) {
return false;
}