Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 21:10:10 +01:00
Fixed portal event reporting wrong from-world
Dieser Commit ist enthalten in:
Ursprung
a105ec32b3
Commit
bb16e6c5c1
@ -306,11 +306,11 @@ public class ServerConfigurationManager {
|
||||
public void a(EntityPlayer entityplayer, int i) {
|
||||
// CraftBukkit start -- Replaced the standard handling of portals with a more customised method.
|
||||
int dimension = i;
|
||||
WorldServer fromWorld = this.server.getWorldServer(dimension);
|
||||
WorldServer fromWorld = this.server.getWorldServer(entityplayer.dimension);
|
||||
WorldServer toWorld = null;
|
||||
if (dimension < 10) {
|
||||
for (WorldServer world : this.server.worlds) {
|
||||
if (world.dimension == i) {
|
||||
if (world.dimension == dimension) {
|
||||
toWorld = world;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren