Skip to content

Commit

Permalink
1.20.30 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Sep 18, 2023
1 parent c62aacc commit 2866d2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions minecraft-headers/minecraft/Block.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ struct Block {

virtual ~Block() {}

char padding[26];
char padding[28];
unsigned short data;
BlockLegacy* blockLegacy;

char filler2[132];
char filler2[148];
BlockSerializationId tag;
char filler3[32];
};
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,12 @@ static void generate_item_alias_mapping(ServerInstance *serverInstance) {
//and allows default fallthrus which spam the crap out of the result
std::map<std::string, short> hardcodedMaxMetaValues = {
{"minecraft:concrete", 16},
{"minecraft:concrete_powder", 16},
{"minecraft:log", 4},
{"minecraft:log2", 2}
{"minecraft:log2", 2},
{"minecraft:stained_glass", 16},
{"minecraft:stained_glass_pane", 16},
{"minecraft:stained_hardened_clay", 16},
};
for(auto pair : itemRegistry->mComplexAliasLookupMap) {
auto metaMap = nlohmann::json::object();
Expand Down

0 comments on commit 2866d2f

Please sign in to comment.