summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-02-03 16:43:41 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-02-03 16:43:41 +0100
commit07f276f4f4ff81dab88a2a1f1bfba57e6538509b (patch)
tree81d1e5838f141d0f616f1b5b19bcdcfbbc89f98e /init.lua
parent341787468a4579f0c62a57f1b9afcab257d421a9 (diff)
downloadfeedlot-07f276f4f4ff81dab88a2a1f1bfba57e6538509b.tar.gz
feedlot-07f276f4f4ff81dab88a2a1f1bfba57e6538509b.tar.bz2
feedlot-07f276f4f4ff81dab88a2a1f1bfba57e6538509b.zip
Fixed stacking bug, relicense under AGPL
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