mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
make EntityPortalReadyEvent#setTargetWorld work again
This commit is contained in:
@@ -37,7 +37,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||
+
|
||||
+ private final PortalType portalType;
|
||||
+ private final World targetWorld;
|
||||
+ private World targetWorld;
|
||||
+
|
||||
+ private boolean cancelled;
|
||||
+
|
||||
@@ -71,11 +71,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * or {@link EntityPortalEvent}.
|
||||
+ *
|
||||
+ * @param targetWorld the world
|
||||
+ * @deprecated changing the target world has no effect
|
||||
+ */
|
||||
+ @Deprecated(forRemoval = true, since = "1.21")
|
||||
+ public void setTargetWorld(final @Nullable World targetWorld) {
|
||||
+ // this.targetWorld = targetWorld;
|
||||
+ this.targetWorld = targetWorld;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
|
Reference in New Issue
Block a user