SPIGOT-7827: Sync EntityPortalEvent with PlayerPortalEvent since non-players can now create portals

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-07-10 19:43:43 +10:00
parent 4377eb6edb
commit 71bc2b07ed
2 changed files with 3 additions and 3 deletions

View File

@@ -19,8 +19,8 @@ public class CraftPortalEvent {
to = portalEvent.getTo();
searchRadius = portalEvent.getSearchRadius();
cancelled = portalEvent.isCancelled();
creationRadius = 0;
canCreatePortal = false;
creationRadius = portalEvent.getCreationRadius();
canCreatePortal = portalEvent.getCanCreatePortal();
}
public CraftPortalEvent(PlayerPortalEvent portalEvent) {