aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-07-17 10:52:22 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-07-17 10:52:22 +0200
commitb0667f1389d0d6db3b01525343daf90c4e996cf0 (patch)
tree4046f3d956c4492bb11d3f7c421cb5142d811587
parent72aa634181be2cffcb75604dc41522df74272871 (diff)
downloadmailbox-b0667f1389d0d6db3b01525343daf90c4e996cf0.tar.gz
mailbox-b0667f1389d0d6db3b01525343daf90c4e996cf0.tar.bz2
mailbox-b0667f1389d0d6db3b01525343daf90c4e996cf0.zip
Fixed bugHEADmaster
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 5f48dc8..d14d309 100644
--- a/init.lua
+++ b/init.lua
@@ -61,6 +61,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
if fields.unrent then
local pos = minetest.string_to_pos(formname:sub(17))
+ local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
if inv:is_empty("mailbox") then
mailbox.unrent(pos, player)