diff --git a/src/frontend/hud.cpp b/src/frontend/hud.cpp index bedca551..da87e746 100644 --- a/src/frontend/hud.cpp +++ b/src/frontend/hud.cpp @@ -387,7 +387,7 @@ void Hud::add(HudElement element) { std::vector> args; args.push_back(Value::of(inventory ? inventory.get()->getId() : 0)); for (int i = 0; i < 3; i++) { - args.push_back(Value::of(blockPos[i])); + args.push_back(Value::of(static_cast(blockPos[i]))); } if (invview) {