Skip to content

Commit

Permalink
chore: use VanillaBlockTypeIds
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Jun 21, 2024
1 parent 824d4be commit a12cbfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plotcraft/core/PlotGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ PlotGenerator::PlotGenerator(Dimension& dimension, uint seed, Json::Value const&


// 初始化方块指针
mBlock_Dirt = &BlockTypeRegistry::getDefaultBlockState("minecraft:dirt");
mBlock_Grass = &BlockTypeRegistry::getDefaultBlockState("minecraft:grass_block");
mBlock_Bedrock = &BlockTypeRegistry::getDefaultBlockState("minecraft:bedrock");
mBlock_Dirt = &BlockTypeRegistry::getDefaultBlockState(VanillaBlockTypeIds::Dirt);
mBlock_Grass = &BlockTypeRegistry::getDefaultBlockState(VanillaBlockTypeIds::GrassBlock);
mBlock_Bedrock = &BlockTypeRegistry::getDefaultBlockState(VanillaBlockTypeIds::Bedrock);
mBlock_Road = &BlockTypeRegistry::getDefaultBlockState(gen.roadBlock.c_str());
mBlock_Fill = &BlockTypeRegistry::getDefaultBlockState(gen.fillBlock.c_str());
mBlock_Border = &BlockTypeRegistry::getDefaultBlockState(gen.borderBlock.c_str());
Expand Down

0 comments on commit a12cbfd

Please sign in to comment.