Skip to content

Commit

Permalink
Update bookshelf on inventory move (#3039)
Browse files Browse the repository at this point in the history
Otherwise the empty book slot icon does not get replaced
  • Loading branch information
Montandalar committed Jun 7, 2023
1 parent cd6ea53 commit 16bf166
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -2555,6 +2555,9 @@ local default_bookshelf_def = {
on_metadata_inventory_take = function(pos)
update_bookshelf(pos)
end,
on_metadata_inventory_move = function(pos)
update_bookshelf(pos)
end,
on_blast = function(pos)
local drops = {}
default.get_inventory_drops(pos, "books", drops)
Expand Down

0 comments on commit 16bf166

Please sign in to comment.