From 00dd4c6a66e767171b2a8d74e94e4ab881332210 Mon Sep 17 00:00:00 2001 From: kilbith Date: Wed, 6 Jan 2016 14:40:42 +0100 Subject: [PATCH] Add gitignore --- .gitignore | 7 +++++++ LICENSE | 9 ++++++--- README.md | 10 ++++++---- worktable.lua | 8 ++++---- 4 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a57dbc9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +## Generic ignorable patterns and files +*~ +.*.swp +*bak* +tags +*.vim + diff --git a/LICENSE b/LICENSE index fc2d19b..8a7cbc3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,10 @@ -Code : GPLv3 -Textures : WTFPL (credits: Gambit, Cisoun, kilbith) +------------------------------------------------------------------------ +| Copyright (c) 2015-2016 kilbith | +| | +| Code: GPL version 3 | +| Textures: WTFPL (credits: Gambit, kilbith, Cisoun) | +------------------------------------------------------------------------ -============================================================== GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 diff --git a/README.md b/README.md index ce2f2e5..913e661 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ ## X-Decor ## -##### Minimal decoration mod for Minetest meant to be light and simple. ##### -##### It adds just the essential made of cute pixels and cubes. ##### -##### It's a lightweight alternative to homedecor and moreblocks all together. ##### +##### A decoration mod meant to be light, simple and well-featured. ##### +##### It adds a bunch of cute cubes and stuff for cutting, cooking, enchanting, etc. ##### +##### It's a lightweight alternative to Home Decor and More Blocks all together. ##### ### Credits ### -##### Special thanks to Gambit for the textures from PixelBox ##### +##### Special thanks to Gambit for the textures from the PixelBOX pack for Minetest. ##### ![Preview](http://i.imgur.com/VorR6zc.png) ![Preview2](http://i.imgur.com/M05BqjT.png) +![Preview3](https://lut.im/oWfKNfxAA4/n9jqwFpJOdUdo8yT.png) +![Preview4](https://lut.im/BBG10S4T2x/VNRPd7gK9bTMYSST.png) diff --git a/worktable.lua b/worktable.lua index ee5c65b..b47de04 100644 --- a/worktable.lua +++ b/worktable.lua @@ -334,7 +334,7 @@ function worktable.move(pos, from_list, from_index, to_list, to_index, count, _) return 0 end -function worktable.update_inventory(inv, inputstack) +function worktable.get_output(inv, inputstack) if inv:is_empty("input") then inv:set_list("forms", {}) return @@ -354,7 +354,7 @@ end function worktable.on_put(pos, listname, _, stack, _) if listname == "input" then local inv = minetest.get_meta(pos):get_inventory() - worktable.update_inventory(inv, stack) + worktable.get_output(inv, stack) end end @@ -362,7 +362,7 @@ function worktable.on_take(pos, listname, index, stack, _) local inv = minetest.get_meta(pos):get_inventory() if listname == "input" then if stack:get_name() == inv:get_stack("input", 1):get_name() then - worktable.update_inventory(inv, stack) + worktable.get_output(inv, stack) else inv:set_list("forms", {}) end @@ -370,7 +370,7 @@ function worktable.on_take(pos, listname, index, stack, _) local inputstack = inv:get_stack("input", 1) inputstack:take_item(math.ceil(stack:get_count() / def[index][2])) inv:set_stack("input", 1, inputstack) - worktable.update_inventory(inv, inputstack) + worktable.get_output(inv, inputstack) end end