]> git.lizzy.rs Git - xdecor.git/commitdiff
Add gitignore
authorkilbith <jeanpatrick.guerrero@gmail.com>
Wed, 6 Jan 2016 13:40:42 +0000 (14:40 +0100)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Wed, 6 Jan 2016 14:07:49 +0000 (15:07 +0100)
.gitignore [new file with mode: 0644]
LICENSE
README.md
worktable.lua

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..a57dbc9
--- /dev/null
@@ -0,0 +1,7 @@
+## Generic ignorable patterns and files
+*~
+.*.swp
+*bak*
+tags
+*.vim
+
diff --git a/LICENSE b/LICENSE
index fc2d19b4c0fd7fc24f9816ad6c2d80740013696a..8a7cbc3da34df4df5400a8b5085fc434aabff98b 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -1,7 +1,10 @@
-Code : GPLv3
-Textures : WTFPL (credits: Gambit, Cisoun, kilbith)
+------------------------------------------------------------------------
+|   Copyright (c) 2015-2016 kilbith <jeanpatrick.guerrero@gmail.com>   |
+|                                                                     |
+|   Code: GPL version 3                                                       |
+|   Textures: WTFPL (credits: Gambit, kilbith, Cisoun)                |
+------------------------------------------------------------------------
 
-==============================================================
 
                     GNU GENERAL PUBLIC LICENSE
                        Version 3, 29 June 2007
index ce2f2e5c1254a41da717a26eacf2843e09a92102..913e6616b9c1b26dc1ed5bfcd140b6f0c62d23ac 100644 (file)
--- 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)
index ee5c65b2077fc6528c3720c60e69c2f23e5d480c..b47de0488b763d41cb936e9d7cf1e405d79b25e3 100644 (file)
@@ -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