mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
fix incorrect 3d text preset for existing players
This commit is contained in:
parent
a4fc4a5044
commit
d9a914ee54
1 changed files with 3 additions and 3 deletions
|
|
@ -53,6 +53,9 @@ Decorator::Decorator(
|
||||||
addParticles(def, pos);
|
addParticles(def, pos);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
playerNamePreset.deserialize(engine.getResPaths().readCombinedObject(
|
||||||
|
"presets/text3d/player_name.toml"
|
||||||
|
));
|
||||||
for (const auto& [id, player] : *level.players) {
|
for (const auto& [id, player] : *level.players) {
|
||||||
if (id == this->player.getId()) {
|
if (id == this->player.getId()) {
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -63,9 +66,6 @@ Decorator::Decorator(
|
||||||
player->getPosition()
|
player->getPosition()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
playerNamePreset.deserialize(engine.getResPaths().readCombinedObject(
|
|
||||||
"presets/text3d/player_name.toml"
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Decorator::addParticles(const Block& def, const glm::ivec3& pos) {
|
void Decorator::addParticles(const Block& def, const glm::ivec3& pos) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue