diff options
author | TomTom <[email protected]> | 2023-11-03 15:05:57 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-03 14:05:57 +0000 |
commit | 487109fddc74813b81bf17dfe8ec7be443963d9d (patch) | |
tree | 8fbfe1ec07553dc9149882389257d948b0486e02 /patches/server/0826-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch | |
parent | 8493340be4fa69fa9369719272e5dff1b7a2f455 (diff) | |
download | Paper-487109fddc74813b81bf17dfe8ec7be443963d9d.tar.gz Paper-487109fddc74813b81bf17dfe8ec7be443963d9d.zip |
Readd 0414 use distance map to optimise entity tracker (#9868)
Diffstat (limited to 'patches/server/0826-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch')
-rw-r--r-- | patches/server/0826-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0826-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch b/patches/server/0826-Fix-CCE-for-SplashPotion-and-LingeringPotion-spawnin.patch new file mode 100644 index 0000000000..6397403478 --- /dev/null +++ b/patches/server/0826-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 f1a3ed6670fcb4e40000ed5c4f7042a4ca99175c..04bcb1f26db12556d70e41541a5df0700d20d964 100644 +--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java ++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftThrownPotion.java +@@ -13,7 +13,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); + } |