mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Remove duplicated creative inventory code
This commit is contained in:
parent
3fe3153a40
commit
9d184e9897
1 changed files with 0 additions and 5 deletions
|
@ -57,11 +57,6 @@ function minetest.is_creative_enabled(name)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Don't subtract from inv when placing in gamemode-creative
|
|
||||||
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack, pointed_thing)
|
|
||||||
if placer and placer:is_player() and minetest.is_creative_enabled(placer:get_player_name()) then return true end
|
|
||||||
end)
|
|
||||||
|
|
||||||
minetest.register_chatcommand("gamemode", {
|
minetest.register_chatcommand("gamemode", {
|
||||||
params = S("[<gamemode>] [<player>]"),
|
params = S("[<gamemode>] [<player>]"),
|
||||||
description = S("Change gamemode (survival/creative) for yourself or player"),
|
description = S("Change gamemode (survival/creative) for yourself or player"),
|
||||||
|
|
Loading…
Reference in a new issue