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.
Dieser Commit ist enthalten in:
Ursprung
b9cf1ac580
Commit
7fe34e9508
@ -549,9 +549,18 @@ index ee9648739fb39c5842063d7442df6eb5c9336d7f..569763b3c9e92a4071884f139fb12632
|
|||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
}
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartTNT.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartTNT.java
|
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
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartTNT.java
|
||||||
+++ b/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
|
@@ -19,4 +19,20 @@ final class CraftMinecartTNT extends CraftMinecart implements ExplosiveMinecart
|
||||||
public EntityType getType() {
|
public EntityType getType() {
|
||||||
return EntityType.MINECART_TNT;
|
return EntityType.MINECART_TNT;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren