summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-11-15 15:34:50 +0100
committerworktycho <work.tycho@gmail.com>2015-11-15 15:34:50 +0100
commit09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f (patch)
tree2de7416a53cba29375d448f9cdc4eaf1114de59f /src/Entities
parentFixed typo in getting-started. (diff)
parentImproved spawn location calculations. (diff)
downloadcuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar
cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.gz
cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.bz2
cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.lz
cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.xz
cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.zst
cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.zip
Diffstat (limited to '')
-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;