mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 11:38:29 +01:00
Fixed portal event reporting wrong from-world
This commit is contained in:
parent
a105ec32b3
commit
bb16e6c5c1
@ -306,11 +306,11 @@ public class ServerConfigurationManager {
|
|||||||
public void a(EntityPlayer entityplayer, int i) {
|
public void a(EntityPlayer entityplayer, int i) {
|
||||||
// CraftBukkit start -- Replaced the standard handling of portals with a more customised method.
|
// CraftBukkit start -- Replaced the standard handling of portals with a more customised method.
|
||||||
int dimension = i;
|
int dimension = i;
|
||||||
WorldServer fromWorld = this.server.getWorldServer(dimension);
|
WorldServer fromWorld = this.server.getWorldServer(entityplayer.dimension);
|
||||||
WorldServer toWorld = null;
|
WorldServer toWorld = null;
|
||||||
if (dimension < 10) {
|
if (dimension < 10) {
|
||||||
for (WorldServer world : this.server.worlds) {
|
for (WorldServer world : this.server.worlds) {
|
||||||
if (world.dimension == i) {
|
if (world.dimension == dimension) {
|
||||||
toWorld = world;
|
toWorld = world;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user