summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua16
1 files changed, 15 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 4f1a455..f9ec252 100644
--- a/init.lua
+++ b/init.lua
@@ -1,4 +1,18 @@
-- feedlot mod Copyright (C) 2017 Gabriel PĂ©rez-Cerezo
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU Affero General Public License for more details.
+
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+
local modpath = minetest.get_modpath( "feedlot" )
dofile(modpath.."/fakeplayer.lua")
@@ -68,7 +82,7 @@ local tube = {
end
if inv:room_for_item("main", stack) and stack:get_name() ~= "bucket:bucket_empty" then
- inv:set_stack("main", 1, stack)
+ inv:add_item("main", stack)
return ItemStack(nil)
else
return stack