Fix CCE for SplashPotion and LingeringPotion spawning
Remove in 1.19 along with the SplashPotion and LingeringPotion interfaces
This commit is contained in:
@@ -14,7 +14,7 @@ import org.bukkit.entity.ThrownPotion;
|
|||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.potion.PotionEffect;
|
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) {
|
public CraftThrownPotion(CraftServer server, net.minecraft.world.entity.projectile.ThrownPotion entity) {
|
||||||
super(server, entity);
|
super(server, entity);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user