aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PlayerConnection.h
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 15:53:32 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 15:53:32 +0700
commitd63f79325f85e014361eb8cf1e41eaebedb1ae71 (patch)
treed9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.Client/PlayerConnection.h
parentd6ec138710461294c3ffd2723bc8a9f212d3471f (diff)
Get rid of MSVC's __int64
Use either int64_t, uint64_t or long long and unsigned long long, defined as per C++11 standard
Diffstat (limited to 'Minecraft.Client/PlayerConnection.h')
-rw-r--r--Minecraft.Client/PlayerConnection.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.Client/PlayerConnection.h b/Minecraft.Client/PlayerConnection.h
index 0d4ce2f6..d7b56a83 100644
--- a/Minecraft.Client/PlayerConnection.h
+++ b/Minecraft.Client/PlayerConnection.h
@@ -30,9 +30,9 @@ private:
bool didTick;
int lastKeepAliveId;
- __int64 lastKeepAliveTime;
+ int64_t lastKeepAliveTime;
static Random random;
- __int64 lastKeepAliveTick;
+ int64_t lastKeepAliveTick;
int chatSpamTickCount;
int dropSpamTickCount;
@@ -81,7 +81,7 @@ private:
public:
// 4J Stu - Handlers only valid in debug mode
-#ifndef _CONTENT_PACKAGE
+#ifndef _CONTENT_PACKAGE
virtual void handleContainerSetSlot(shared_ptr<ContainerSetSlotPacket> packet);
#endif
virtual void handleContainerClick(shared_ptr<ContainerClickPacket> packet);
@@ -89,13 +89,13 @@ public:
virtual void handleSetCreativeModeSlot(shared_ptr<SetCreativeModeSlotPacket> packet);
virtual void handleContainerAck(shared_ptr<ContainerAckPacket> packet);
virtual void handleSignUpdate(shared_ptr<SignUpdatePacket> packet);
- virtual void handleKeepAlive(shared_ptr<KeepAlivePacket> packet);
+ virtual void handleKeepAlive(shared_ptr<KeepAlivePacket> packet);
virtual void handlePlayerInfo(shared_ptr<PlayerInfoPacket> packet); // 4J Added
virtual bool isServerPacketListener();
virtual void handlePlayerAbilities(shared_ptr<PlayerAbilitiesPacket> playerAbilitiesPacket);
virtual void handleCustomPayload(shared_ptr<CustomPayloadPacket> customPayloadPacket);
- // 4J Added
+ // 4J Added
virtual void handleCraftItem(shared_ptr<CraftItemPacket> packet);
virtual void handleTradeItem(shared_ptr<TradeItemPacket> packet);
virtual void handleDebugOptions(shared_ptr<DebugOptionsPacket> packet);