Improve mapgen, add grass, and include the fill tool.

This commit is contained in:
Signal 2026-01-15 18:54:28 -05:00
parent 1e897665bb
commit 4659a008ac
86 changed files with 1098 additions and 293 deletions

View file

@ -9,8 +9,6 @@ Player = {
object = p
}, {__index = Player})
local inv = p:get_inventory()
inv:set_size("hand", 1)
m:set_hotbar_size(8)
m.textures = {_textures = {}}
@ -431,6 +429,16 @@ Player = {
m:dispatch("deinit")
m.health_display:remove()
m.wielditem_display:remove()
-- Unwield the wielded item. This ensures that if wielding an item creates side effects
-- (e.g. temporary entities while wielded), those side effects will not remain in effect
-- when the player leaves the game.
local w = m.object:get_wielded_item()
local wname = w:get_name()
local def = minetest.registered_items[wname]
local onunselect = def and def.on_unwield
if onunselect then onunselect(m) end
rgt.players[m.name] = nil
end
}