Fixes and enhancements from my MCPE repository. (https://github.com/mschiller890/mcpe64)

This commit is contained in:
Michal Schiller
2026-03-10 19:31:40 +01:00
parent 0c97ceb340
commit 2fc323639a
69 changed files with 2509 additions and 639 deletions

View File

@@ -4,6 +4,7 @@
//package net.minecraft.network.packet;
#include "../Packet.h"
#include <cstdint>
class SetTimePacket: public Packet {
public:
@@ -11,7 +12,7 @@ public:
}
SetTimePacket(long time)
: time(time)
: time((int32_t)time)
{}
void write(RakNet::BitStream* bitStream)
@@ -30,7 +31,7 @@ public:
callback->handle(source, (SetTimePacket*)this);
}
long time;
int32_t time;
};
#endif /*NET_MINECRAFT_NETWORK_PACKET__SetTimePacket_H__*/

View File

@@ -2,11 +2,12 @@
#define NET_MINECRAFT_NETWORK_PACKET__StartGamePacket_H__
#include "../Packet.h"
#include <cstdint>
class StartGamePacket : public Packet
{
public:
long levelSeed;
int32_t levelSeed;
int levelGeneratorVersion;
int gameType;
@@ -18,7 +19,7 @@ public:
}
StartGamePacket(long seed, int levelGeneratorVersion, int gameType, int entityId, float x, float y, float z)
: levelSeed(seed),
: levelSeed((int32_t)seed),
levelGeneratorVersion(levelGeneratorVersion),
gameType(gameType),
entityId(entityId),