Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamguxiang committed Sep 2, 2022
1 parent 0e571db commit b221a7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BEPlaceholderAPI/Lang.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once
#include <I18nAPI.h>

static const I18N::LangData defaultLangData = {
static const SingleFileI18N::LangData defaultLangData = {
{"en_US", {
{"papi.command.help", "§g-------BEPlaceholderAPI help -------\n§a/placeholder list §bList of registered PAPI plugins\n§a/placeholder info [optional/plugin name] §bGet detailed variable names\n§a/placeholder unregister <variable name/plugin name> §bUnregister a variable name or plugin"},
{"papi.command", "§6PlaceholderApi command system"},
Expand Down
2 changes: 1 addition & 1 deletion BEPlaceholderAPI/RegPAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void regPlayerInit() {
PlaceholderAPI::registerPlayerPlaceholder("player_max_hunger", [](Player* sp) {
string maxHunger = "";
auto plnbt = sp->getNbt();
json plnJ = json::parse(plnbt.get()->toJson(0));
nlohmann::json plnJ = nlohmann::json::parse(plnbt.get()->toJson(0));
for (auto& nbt : plnJ["Attributes"]) {
if (nbt["Name"] == "minecraft:player.hunger") {
maxHunger = std::to_string((double)nbt["Max"]);
Expand Down

0 comments on commit b221a7f

Please sign in to comment.