Skip to content

Commit 67b13a5

Browse files
committedApr 29, 2017
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
1 parent ae7206c commit 67b13a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎mods/default/craftitems.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
139139
end
140140
end
141141

142-
stack:get_meta():from_table(data)
142+
stack:get_meta():from_table({fields = data})
143143
stack = book_on_use(stack, player)
144144
end
145145

0 commit comments

Comments
 (0)