forked from minetest/minetest_game
Update bookshelf on inventory move (#3039)
Otherwise the empty book slot icon does not get replaced
This commit is contained in:
parent
cd6ea53a52
commit
16bf166902
@ -2555,6 +2555,9 @@ local default_bookshelf_def = {
|
|||||||
on_metadata_inventory_take = function(pos)
|
on_metadata_inventory_take = function(pos)
|
||||||
update_bookshelf(pos)
|
update_bookshelf(pos)
|
||||||
end,
|
end,
|
||||||
|
on_metadata_inventory_move = function(pos)
|
||||||
|
update_bookshelf(pos)
|
||||||
|
end,
|
||||||
on_blast = function(pos)
|
on_blast = function(pos)
|
||||||
local drops = {}
|
local drops = {}
|
||||||
default.get_inventory_drops(pos, "books", drops)
|
default.get_inventory_drops(pos, "books", drops)
|
||||||
|
Loading…
Reference in New Issue
Block a user