forked from minetest/minetest_game
Fix books getting erased on page button use.
Changing the book page caused the entire itemstack meta to get wiped due to improper calling of meta:from_table(). Fixes #1711
This commit is contained in:
parent
ae7206c006
commit
67b13a5942
@ -139,7 +139,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
stack:get_meta():from_table(data)
|
stack:get_meta():from_table({fields = data})
|
||||||
stack = book_on_use(stack, player)
|
stack = book_on_use(stack, player)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user