Fixed portal event reporting wrong from-world

This commit is contained in:
Nathan Adams 2011-11-25 20:05:51 +00:00
parent a105ec32b3
commit bb16e6c5c1

View File

@ -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;
}
}