mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Implement override.txt support for special tiles (#10140)
Add override targets for all special_tiles entries in node definitions, allowing texture packs to replace these textures. This makes overrides work properly with a variety of drawtypes. The targets are named special1 through special6, covering the the current length of the special_tiles array.
This commit is contained in:
parent
d22fd6fc34
commit
93ecc589bc
6 changed files with 84 additions and 16 deletions
|
@ -261,6 +261,11 @@ struct TileDef
|
|||
NodeDrawType drawtype);
|
||||
};
|
||||
|
||||
// Defines the number of special tiles per nodedef
|
||||
//
|
||||
// NOTE: When changing this value, the enum entries of OverrideTarget and
|
||||
// parser in TextureOverrideSource must be updated so that all special
|
||||
// tiles can be overridden.
|
||||
#define CF_SPECIAL_COUNT 6
|
||||
|
||||
struct ContentFeatures
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue