Fix CCE for SplashPotion and LingeringPotion spawning

Remove in 1.19 along with the SplashPotion and
LingeringPotion interfaces
This commit is contained in:
Jake Potrebic 2022-04-21 18:18:02 -07:00
parent dd19a41799
commit 7cee8d5e02

View file

@ -14,7 +14,7 @@ import org.bukkit.entity.ThrownPotion;
import org.bukkit.inventory.ItemStack;
import org.bukkit.potion.PotionEffect;
public class CraftThrownPotion extends CraftThrowableProjectile implements ThrownPotion {
public class CraftThrownPotion extends CraftThrowableProjectile implements ThrownPotion, org.bukkit.entity.SplashPotion, org.bukkit.entity.LingeringPotion { // Paper - implement other classes to avoid violating spawn method generic contracts
public CraftThrownPotion(CraftServer server, net.minecraft.world.entity.projectile.ThrownPotion entity) {
super(server, entity);
}