aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorWarr1024 <warr1024@gmail.com>2020-02-26 04:26:24 -0500
committerGitHub <noreply@github.com>2020-02-26 10:26:24 +0100
commit244121b9643f91e1b8ffb4c37a255d7603da2116 (patch)
tree8d4579302e451899a2bc19fb791def3a4c2d271d /src/network
parent8ddb6718e3e0b4713fce13a7d7324327b2e56d20 (diff)
downloadminetest-244121b9643f91e1b8ffb4c37a255d7603da2116.tar.gz
minetest-244121b9643f91e1b8ffb4c37a255d7603da2116.tar.bz2
minetest-244121b9643f91e1b8ffb4c37a255d7603da2116.zip
Allow texture modifiers in hotbar textures. (#9271)
Diffstat (limited to 'src/network')
-rw-r--r--src/network/clientpackethandler.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index ceb4b3b17..b887c0282 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -1224,21 +1224,9 @@ void Client::handleCommand_HudSetParam(NetworkPacket* pkt)
player->hud_hotbar_itemcount = hotbar_itemcount;
}
else if (param == HUD_PARAM_HOTBAR_IMAGE) {
- // If value not empty verify image exists in texture source
- if (!value.empty() && !getTextureSource()->isKnownSourceImage(value)) {
- errorstream << "Server sent wrong Hud hotbar image (sent value: '"
- << value << "')" << std::endl;
- return;
- }
player->hotbar_image = value;
}
else if (param == HUD_PARAM_HOTBAR_SELECTED_IMAGE) {
- // If value not empty verify image exists in texture source
- if (!value.empty() && !getTextureSource()->isKnownSourceImage(value)) {
- errorstream << "Server sent wrong Hud hotbar selected image (sent value: '"
- << value << "')" << std::endl;
- return;
- }
player->hotbar_selected_image = value;
}
}