mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Automatic item and node colorization (#5640)
* Automatic item and node colorization Now nodes with a palette yield colored item stacks, and colored items place colored nodes by default. The client predicts the colorization. * Backwards compatibility * Use nil * Style fixes * Fix code style * Document changes
This commit is contained in:
parent
7c07cb4ec2
commit
0fcaf9fb1b
8 changed files with 114 additions and 38 deletions
|
@ -93,7 +93,7 @@ private:
|
|||
// Returns true if the item completely fits into the list
|
||||
static int l_room_for_item(lua_State *L);
|
||||
|
||||
// contains_item(self, listname, itemstack or itemstring or table or nil) -> true/false
|
||||
// contains_item(self, listname, itemstack or itemstring or table or nil, [match_meta]) -> true/false
|
||||
// Returns true if the list contains the given count of the given item name
|
||||
static int l_contains_item(lua_State *L);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue