]> git.lizzy.rs Git - Crafter.git/commitdiff
Fix new bug created by minetest engine commit
authoroilboi <47129783+oilboi@users.noreply.github.com>
Wed, 29 Apr 2020 02:47:17 +0000 (22:47 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Wed, 29 Apr 2020 02:47:17 +0000 (22:47 -0400)
mods/itemhandling/magnet.lua

index 79c630471122603c7bf39a71b343dc4fffcbe723..61c7d7e7222b9fc5a18952ae80665116952adc52 100644 (file)
@@ -15,7 +15,7 @@ minetest.register_globalstep(function(dtime)
                                        if diff >= 0 and inv and inv:room_for_item("main", ItemStack(object:get_luaentity().itemstring)) then
                                                if object:get_luaentity().collectable == true and object:get_luaentity().collected == false then
                                                        minetest.sound_play("pickup", {
-                                                               to_player = player,
+                                                               to_player = player:get_player_name(),
                                                                gain = 0.4,
                                                                pitch = math.random(60,100)/100
                                                        })