geforkt von Mirrors/Paper
Fix wrong world being passed into portal event (#8174)
Dieser Commit ist enthalten in:
Ursprung
656d32e99f
Commit
7b09f21566
@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
this.level.getProfiler().push("portal");
|
this.level.getProfiler().push("portal");
|
||||||
this.portalTime = i;
|
this.portalTime = i;
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ io.papermc.paper.event.entity.EntityPortalReadyEvent event = new io.papermc.paper.event.entity.EntityPortalReadyEvent(this.getBukkitEntity(), worldserver1 == null ? null : worldserver.getWorld(), org.bukkit.PortalType.NETHER);
|
+ io.papermc.paper.event.entity.EntityPortalReadyEvent event = new io.papermc.paper.event.entity.EntityPortalReadyEvent(this.getBukkitEntity(), worldserver1 == null ? null : worldserver1.getWorld(), org.bukkit.PortalType.NETHER);
|
||||||
+ if (!event.callEvent()) {
|
+ if (!event.callEvent()) {
|
||||||
+ this.portalTime = 0;
|
+ this.portalTime = 0;
|
||||||
+ } else {
|
+ } else {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren