From 7fe34e95089808e8d80ecb8c05c6f3b3506b8ed4 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 12 Oct 2022 16:10:52 +0100 Subject: [PATCH] Make CraftMinecartTNT public adding the getHandle method causes some issues with things like ProtocolLib due to the expectation that all classes which provide a getHandle method are public. --- patches/server/0657-Missing-Entity-Behavior-API.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/patches/server/0657-Missing-Entity-Behavior-API.patch b/patches/server/0657-Missing-Entity-Behavior-API.patch index fe8e4b40a2..08e11a769d 100644 --- a/patches/server/0657-Missing-Entity-Behavior-API.patch +++ b/patches/server/0657-Missing-Entity-Behavior-API.patch @@ -549,9 +549,18 @@ index ee9648739fb39c5842063d7442df6eb5c9336d7f..569763b3c9e92a4071884f139fb12632 + // Paper end } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartTNT.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartTNT.java -index 9569068c0a6e1eb934f063634f5d3efe674aa33d..dfd5e830fd262b72256b361e094f6769b323e9c8 100644 +index 9569068c0a6e1eb934f063634f5d3efe674aa33d..dfd0b5e018194343ca40629db6f70c6020c2d567 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartTNT.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartTNT.java +@@ -5,7 +5,7 @@ import org.bukkit.craftbukkit.CraftServer; + import org.bukkit.entity.EntityType; + import org.bukkit.entity.minecart.ExplosiveMinecart; + +-final class CraftMinecartTNT extends CraftMinecart implements ExplosiveMinecart { ++public final class CraftMinecartTNT extends CraftMinecart implements ExplosiveMinecart { // Paper - getHandle -> make public + CraftMinecartTNT(CraftServer server, MinecartTNT entity) { + super(server, entity); + } @@ -19,4 +19,20 @@ final class CraftMinecartTNT extends CraftMinecart implements ExplosiveMinecart public EntityType getType() { return EntityType.MINECART_TNT;