diff options
author | andrew <xdotftw@gmail.com> | 2014-02-23 14:03:40 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-02-23 14:05:03 +0100 |
commit | f47187394572027cbfa07884cba2f54eaa6972ec (patch) | |
tree | 1f87d8d3f350b1d0c3faf5963c2ad74482ac3174 /src/Items/ItemEmptyMap.h | |
parent | Manually exported DoWithMap (diff) | |
download | cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.gz cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.bz2 cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.lz cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.xz cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.zst cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemEmptyMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Items/ItemEmptyMap.h b/src/Items/ItemEmptyMap.h index b06cf9d13..db28511f3 100644 --- a/src/Items/ItemEmptyMap.h +++ b/src/Items/ItemEmptyMap.h @@ -41,7 +41,7 @@ public: int CenterX = round(a_Player->GetPosX() / (float) RegionWidth) * RegionWidth; int CenterZ = round(a_Player->GetPosZ() / (float) RegionWidth) * RegionWidth; - cMap * NewMap = a_World->CreateMap(CenterX, CenterZ, DEFAULT_SCALE); + cMap * NewMap = a_World->GetMapManager().CreateMap(CenterX, CenterZ, DEFAULT_SCALE); // Remove empty map from inventory if (!a_Player->GetInventory().RemoveOneEquippedItem()) |