| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
Adds the possibility to colorize item stacks based on their metadata.
In the item/node definition you can specify palette (an image file)
and color (fallback color if the item has no palette or metadata).
Then you can add palette_index to the metadata.
Dropped itemstacks with different colors do not merge.
|
|
|
|
|
| |
Partially reverts #3547
Infotext remains optional for objects, empty by default
|
| |
|
|
|
|
|
| |
The player name is now added in the field "dropped_by" on the created
entity.
|
|
|
|
| |
Fixes #3280
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Check for entity addition success in spawn_item implementation
2. Check for success in item_drop callback, so that the player
doesn't lose the item if they are outside bounds and try to drop it.
3. When existing player joins game, check that their position is inside
map bounds. If not, set their position to the return value of findSpawnPos().
4. Make findSpawnPos() respect the border
2 fixes a lua crash if a player drops an item outside map bounds.
3 fixes an assertion crash if a player leaves when being outside map bounds,
and then rejoins.
|
|
|
|
| |
Items dropped into unloaded map space will crash game so here's a fix...
|
|
|
|
| |
Don't ident too much, and add a comment.
|
|
|
|
| |
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
|
|
|
|
| |
Also fix leaking globals found by it.
|
|
|
|
| |
Add TTL to item entities.
|
| |
|
|
|