]> git.lizzy.rs Git - dragonfireclient.git/commit
Fix some textures not being sent correctly to older clients
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 23 Apr 2022 16:04:38 +0000 (18:04 +0200)
committersfan5 <sfan5@live.de>
Sun, 24 Apr 2022 19:10:23 +0000 (21:10 +0200)
commit23f981c45817664c53d70ef0d3bd5c1b46675641
tree19ae612ca05b639e331277fe6b1e7b5017bf72e0
parent48d1bca9b8f65ca9ecc62043609685a6858ee094
Fix some textures not being sent correctly to older clients

Since b2eb44afc50976dc0954c868977b5829f3ff8a19, a texture defined as
`[combine:16x512:0,0=some_file.png;etc`
will not be sent correctly from a 5.5 server to a 5.4 client due to the
overeager detection of unsupported base modifier `[` introducing a
spurious `blank.png^` before the modifier.

Fix this by whitelisting which base modifiers can be passed through
unchanged to the client, and prefix `blank.png` for the others
(which at the moment is just [png:, but the list may grow larger
as new base modifiers are added.)
src/nodedef.cpp