diff options
author | Nassim Jahnke <[email protected]> | 2024-12-05 11:18:29 +0100 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2024-12-05 12:20:56 +0100 |
commit | e4e24f3335609b38f460ced71d18babcf11bf9cb (patch) | |
tree | 51880d664b3444ce26d6f8cdeb3b8219e5616fca /patches/server/0704-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch | |
parent | c54c062e6ff742445bf7749c84106ca67090172d (diff) | |
download | Paper-e4e24f3335609b38f460ced71d18babcf11bf9cb.tar.gz Paper-e4e24f3335609b38f460ced71d18babcf11bf9cb.zip |
Move around patches again
Diffstat (limited to 'patches/server/0704-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch')
-rw-r--r-- | patches/server/0704-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0704-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch b/patches/server/0704-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch new file mode 100644 index 0000000000..c2e21a749e --- /dev/null +++ b/patches/server/0704-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jake Potrebic <[email protected]> +Date: Thu, 21 Apr 2022 18:18:02 -0700 +Subject: [PATCH] Fix CCE for SplashPotion and LingeringPotion spawning + +Remove in 1.19 along with the SplashPotion and +LingeringPotion interfaces + +diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java +index f6fa6f1ac50b757dd3bc9a8dee9f6085446182c8..65b6de9d21da6843d7c7087f0dea98d3b75f24cf 100644 +--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java ++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java +@@ -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); + } |