aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorShane Freeder <[email protected]>2022-10-12 16:10:52 +0100
committerShane Freeder <[email protected]>2022-10-12 16:10:52 +0100
commit7fe34e95089808e8d80ecb8c05c6f3b3506b8ed4 (patch)
tree207ee210453f0b1199a5f6f50f67c295d732709b
parentb9cf1ac5804aa84f9d6b0bdc08ab643367bd22f9 (diff)
downloadPaper-7fe34e95089808e8d80ecb8c05c6f3b3506b8ed4.tar.gz
Paper-7fe34e95089808e8d80ecb8c05c6f3b3506b8ed4.zip
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.
-rw-r--r--patches/server/0657-Missing-Entity-Behavior-API.patch11
1 files changed, 10 insertions, 1 deletions
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;