mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-08 23:22:55 +00:00
more fixes
This commit is contained in:
parent
a454171f42
commit
f10f5845fd
|
|
@ -22,13 +22,13 @@ AnimatePacket::AnimatePacket(shared_ptr<Entity> e, int action)
|
|||
void AnimatePacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
id = dis->readInt();
|
||||
action = dis->readByte();
|
||||
action = static_cast<int>(dis->readByte());
|
||||
}
|
||||
|
||||
void AnimatePacket::write(DataOutputStream *dos) //throws IOException
|
||||
{
|
||||
dos->writeInt(id);
|
||||
dos->writeByte(action);
|
||||
dos->writeByte(static_cast<std::byte>(action));
|
||||
}
|
||||
|
||||
void AnimatePacket::handle(PacketListener *listener)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include "DataLayer.h"
|
||||
#include "Dimension.h"
|
||||
|
||||
|
||||
#include "../Minecraft.Client/Windows64/Windows64_App.h"
|
||||
|
||||
BlockRegionUpdatePacket::~BlockRegionUpdatePacket()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue