make EntityPortalReadyEvent#setTargetWorld work again

This commit is contained in:
Jake Potrebic
2024-06-16 15:48:38 -07:00
parent 1862266320
commit a9fdf73f2e
2 changed files with 19 additions and 24 deletions

View File

@@ -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;
+ }
+
+ /**