mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
fix: cleanup, start replacing error handling
This commit is contained in:
parent
7dc6009fc0
commit
82bb77a3a5
|
|
@ -35,9 +35,6 @@
|
||||||
#include "..\Minecraft.World\net.minecraft.world.item.crafting.h"
|
#include "..\Minecraft.World\net.minecraft.world.item.crafting.h"
|
||||||
#include "Options.h"
|
#include "Options.h"
|
||||||
|
|
||||||
// MinecraftConsoles Added
|
|
||||||
#include "..\Minecraft.World\Exceptions.h"
|
|
||||||
|
|
||||||
Random PlayerConnection::random;
|
Random PlayerConnection::random;
|
||||||
|
|
||||||
PlayerConnection::PlayerConnection(MinecraftServer *server, Connection *connection, shared_ptr<ServerPlayer> player)
|
PlayerConnection::PlayerConnection(MinecraftServer *server, Connection *connection, shared_ptr<ServerPlayer> player)
|
||||||
|
|
|
||||||
|
|
@ -501,7 +501,7 @@ int DataInputStream::readUTFChar()
|
||||||
|
|
||||||
if (firstByte == -1)
|
if (firstByte == -1)
|
||||||
{
|
{
|
||||||
throw EOFException(L"DataInputStream::readUTFChar - end of stream");
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Masking patterns:
|
// Masking patterns:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue