projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a5877a
)
UI update
author
RealBadAngel
<mk@realbadangel.pl>
Mon, 18 Feb 2013 02:15:00 +0000
(
03:15
+0100)
committer
RealBadAngel
<mk@realbadangel.pl>
Mon, 18 Feb 2013 02:15:00 +0000
(
03:15
+0100)
unified_inventory/api.lua
patch
|
blob
|
history
diff --git
a/unified_inventory/api.lua
b/unified_inventory/api.lua
index e7888a075a3a97c0d97964bd3bbb3ab96a82ca40..8c210dd046bebc8c6b08b3f374fafbf7f94fa89e 100644
(file)
--- a/
unified_inventory/api.lua
+++ b/
unified_inventory/api.lua
@@
-53,7
+53,11
@@
local inv = minetest.create_detached_inventory(player:get_player_name().."craftr
return 0
end,
allow_take = function(inv, listname, index, stack, player)
- return 0
+ if minetest.setting_getbool("creative_mode") then
+ return stack:get_count()
+ else
+ return 0
+ end
end,
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
return 0