From da4ada37818f5d1716e071b8fa52cede5c29af69 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 13 Nov 2016 18:33:16 +0000 Subject: [PATCH] Remove bad assertion in smartfs._attach_to_node_ --- init.lua | 2 +- smartfs.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/init.lua b/init.lua index aa1b447..17da423 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ dofile(minetest.get_modpath("smartfs").."/smartfs.lua") -dofile(minetest.get_modpath("smartfs").."/docs/example.lua") +-- dofile(minetest.get_modpath("smartfs").."/docs/example.lua") assert(minetest.is_yes(true) == true) diff --git a/smartfs.lua b/smartfs.lua index 8a9c9ef..f83ab1d 100644 --- a/smartfs.lua +++ b/smartfs.lua @@ -389,7 +389,6 @@ end function smartfs._attach_to_node_(form, nodepos, placer) assert(form) assert(nodepos and nodepos.x) - assert(placer and placer.get_player_name) -- No attached user, no params, no inventory integration: local state = smartfs._makeState_(form, nil, nil, nil, nodepos)