Skip to content

Commit

Permalink
Fix compilation for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
adepierre committed May 7, 2024
1 parent 3ac7857 commit 8a58251
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions botcraft/src/Utilities/ItemUtilities.cpp
@@ -1,9 +1,7 @@
#include "botcraft/Utilities/ItemUtilities.hpp"

#if PROTOCOL_VERSION < 766 /* < 1.20.5 */
#include "protocolCraft/Types/NBT/NBT.hpp"
#else
#include "protocolCraft/Types/Components/DataComponents.hpp"
#include "protocolCraft/Types/Item/Slot.hpp"
#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
#include "protocolCraft/Types/Components/DataComponentTypeInteger.hpp"
#include "protocolCraft/Types/Components/DataComponentTypeItemEnchantments.hpp"
#endif
Expand Down
@@ -1,7 +1,7 @@
#pragma once
#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
#include "protocolCraft/NetworkType.hpp"
#include "protocolCraft/Types/Components/Subtypes/Propertymatcher.hpp"
#include "protocolCraft/Types/Components/Subtypes/PropertyMatcher.hpp"

#include <vector>

Expand Down

0 comments on commit 8a58251

Please sign in to comment.