summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-23 22:12:24 +0200
committermadmaxoft <github@xoft.cz>2014-09-23 22:12:48 +0200
commitd04ab9b70300e9c7fc5cddeac648fde3aa7d3450 (patch)
treeae043915ab290f49770c646c1a9bd4f2ecc4645a /src
parentFixed a crash in WSSAnvil. (diff)
downloadcuberite-d04ab9b70300e9c7fc5cddeac648fde3aa7d3450.tar
cuberite-d04ab9b70300e9c7fc5cddeac648fde3aa7d3450.tar.gz
cuberite-d04ab9b70300e9c7fc5cddeac648fde3aa7d3450.tar.bz2
cuberite-d04ab9b70300e9c7fc5cddeac648fde3aa7d3450.tar.lz
cuberite-d04ab9b70300e9c7fc5cddeac648fde3aa7d3450.tar.xz
cuberite-d04ab9b70300e9c7fc5cddeac648fde3aa7d3450.tar.zst
cuberite-d04ab9b70300e9c7fc5cddeac648fde3aa7d3450.zip
Diffstat (limited to 'src')
-rw-r--r--src/Protocol/Protocol18x.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp
index e2ea6701a..f62d350fe 100644
--- a/src/Protocol/Protocol18x.cpp
+++ b/src/Protocol/Protocol18x.cpp
@@ -576,7 +576,7 @@ void cProtocol180::SendLogin(const cPlayer & a_Player, const cWorld & a_World)
// Send the spawn position:
{
cPacketizer Pkt(*this, 0x05); // Spawn Position packet
- Pkt.WritePosition(a_World.GetSpawnX(), a_World.GetSpawnY(), a_World.GetSpawnZ());
+ Pkt.WritePosition((int)a_World.GetSpawnX(), (int)a_World.GetSpawnY(), (int)a_World.GetSpawnZ());
}
// Send the server difficulty:
@@ -633,7 +633,7 @@ void cProtocol180::SendPaintingSpawn(const cPainting & a_Painting)
cPacketizer Pkt(*this, 0x10); // Spawn Painting packet
Pkt.WriteVarInt(a_Painting.GetUniqueID());
Pkt.WriteString(a_Painting.GetName().c_str());
- Pkt.WritePosition(PosX, PosY, PosZ);
+ Pkt.WritePosition((int)PosX, (int)PosY, (int)PosZ);
Pkt.WriteChar(a_Painting.GetDirection());
}