Skip to content

Commit 16bf166

Browse files
authored
Update bookshelf on inventory move (#3039)
Otherwise the empty book slot icon does not get replaced
1 parent cd6ea53 commit 16bf166

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mods/default/nodes.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,9 @@ local default_bookshelf_def = {
25552555
on_metadata_inventory_take = function(pos)
25562556
update_bookshelf(pos)
25572557
end,
2558+
on_metadata_inventory_move = function(pos)
2559+
update_bookshelf(pos)
2560+
end,
25582561
on_blast = function(pos)
25592562
local drops = {}
25602563
default.get_inventory_drops(pos, "books", drops)

0 commit comments

Comments
 (0)