guards (pc): fix 'defined' guards for WIN64/Linux

* The python script i wrote to do that automatically fucked up and forgot a parenthese after _WINDOWS64 in almost every statements
This commit is contained in:
Anaël committed 2026-11-29 16:23:43 +01:00
1 parent 3092e1700a
commit 2d02f1d3a7
3 files changed
+42 -42

No files matched your search

+3 -3
View File
@@ -8,7 +8,7 @@
#include "../Minecraft.World/net.minecraft.world.level.h"
#include "../Minecraft.World/net.minecraft.world.level.dimension.h"
#include "TeleportCommand.h"
#if (defined(_WINDOWS64 || defined(__linux__)) && defined(MINECRAFT_SERVER_BUILD)
#if (defined(_WINDOWS64) || defined(__linux__)) && defined(MINECRAFT_SERVER_BUILD)
#include "../Minecraft.Server/FourKitBridge.h"
#endif
@@ -37,7 +37,7 @@ void TeleportCommand::execute(shared_ptr<CommandSender> source, byteArray comman
byte xRot = dis.readByte();
subject->ride(nullptr);
#if (defined(_WINDOWS64 || defined(__linux__)) && defined(MINECRAFT_SERVER_BUILD)
#if (defined(_WINDOWS64) || defined(__linux__)) && defined(MINECRAFT_SERVER_BUILD)
{
double outX, outY, outZ;
bool cancelled = FourKitBridge::FirePlayerTeleport(subject->entityId,
@@ -64,7 +64,7 @@ void TeleportCommand::execute(shared_ptr<CommandSender> source, byteArray comman
return;
subject->ride(nullptr);
#if (defined(_WINDOWS64 || defined(__linux__)) && defined(MINECRAFT_SERVER_BUILD)
#if (defined(_WINDOWS64) || defined(__linux__)) && defined(MINECRAFT_SERVER_BUILD)
{
double outX, outY, outZ;
bool cancelled = FourKitBridge::FirePlayerTeleport(subject->entityId,