Fixed compilation

This commit is contained in:
Stijn Bannink 2024-04-29 18:11:13 +02:00
parent f25c727a15
commit cba7cbf6e5
4 changed files with 16 additions and 18 deletions

View file

@ -30,7 +30,6 @@ import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.SpawnEggMeta;
import org.bukkit.potion.Potion;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@ -1908,13 +1907,6 @@ public enum XMaterial {
}
}
// Potions used the items data value to store
// information about the type of potion in 1.8
if (!supports(9) && material.endsWith("ION")) {
// There's also 16000+ data value technique, but this is more reliable.
return Potion.fromItemStack(item).isSplash() ? SPLASH_POTION : POTION;
}
// Refer to the enum for info.
// Currently, these are the only materials with a non-zero data value
// that has been renamed after the flattening update.