1
0
mirror of https://github.com/SmallJoker/bitchange.git synced 2025-07-17 15:50:19 +02:00

💥 Break old settings

- Rename bitchange_ -> bitchange.
- Better coding style
- Run OptiPNG
This commit is contained in:
SmallJoker
2015-04-16 15:06:02 +02:00
parent 20fcf0a0a0
commit 84f1b0f330
26 changed files with 138 additions and 150 deletions

View File

@ -48,7 +48,7 @@ minetest.register_node("bitchange:donationbox", {
local inv = meta:get_inventory()
if not inv:is_empty("main") then
return false
elseif bitchange_has_access(meta:get_string("owner"), player:get_player_name()) then
elseif bitchange.has_access(meta:get_string("owner"), player:get_player_name()) then
return true
end
return false
@ -59,9 +59,9 @@ minetest.register_node("bitchange:donationbox", {
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
return stack:get_count()
end,
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if(not bitchange_has_access(meta:get_string("owner"), player:get_player_name())) then
if not bitchange.has_access(meta:get_string("owner"), player:get_player_name()) then
return 0
end
return stack:get_count()
@ -69,10 +69,10 @@ minetest.register_node("bitchange:donationbox", {
})
minetest.register_craft({
output = 'bitchange:donationbox',
output = "bitchange:donationbox",
recipe = {
{'default:wood', '', 'default:wood'},
{'default:wood', 'bitchange:minecoin', 'default:wood'},
{'default:wood', 'default:wood', 'default:wood'}
{"default:wood", "", "default:wood"},
{"default:wood", "bitchange:minecoin", "default:wood"},
{"default:wood", "default:wood", "default:wood"}
}
})