summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorsamoatesgames <sam@samoatesgames.com>2015-11-13 16:08:16 +0100
committersamoatesgames <sam@samoatesgames.com>2015-11-13 16:08:16 +0100
commit19ea5d5423a04e91576f8f5772aebedbff6292cb (patch)
tree4b44cc6d77959a96171dcea931d3141fa1320f5a /src/Entities
parentMerge pull request #2641 from cuberite/worktycho-patch-1 (diff)
downloadcuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.gz
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.bz2
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.lz
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.xz
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.zst
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Entity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index ee806c4b3..f44dbe27c 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1343,7 +1343,7 @@ bool cEntity::DetectPortal()
TargetPos.x *= 8.0;
TargetPos.z *= 8.0;
- cWorld * TargetWorld = cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetLinkedOverworldName(), dimNether, GetWorld()->GetName(), false);
+ cWorld * TargetWorld = cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetLinkedOverworldName(), dimNether, GetWorld()->GetName(), true);
LOGD("Jumping nether -> overworld");
new cNetherPortalScanner(this, TargetWorld, TargetPos, 256);
return true;
@@ -1367,7 +1367,7 @@ bool cEntity::DetectPortal()
TargetPos.x /= 8.0;
TargetPos.z /= 8.0;
- cWorld * TargetWorld = cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetLinkedNetherWorldName(), dimNether, GetWorld()->GetName(), false);
+ cWorld * TargetWorld = cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetLinkedNetherWorldName(), dimNether, GetWorld()->GetName(), true);
LOGD("Jumping overworld -> nether");
new cNetherPortalScanner(this, TargetWorld, TargetPos, 128);
return true;