1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

Update bookshelf on inventory move (#3039)

Otherwise the empty book slot icon does not get replaced
This commit is contained in:
Montandalar 2023-06-08 00:20:47 +10:00 committed by GitHub
parent cd6ea53a52
commit 16bf166902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)