mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-04-30 13:11:41 -04:00
Update mods/carts/cart_entity.lua
This commit is contained in:
parent
35c19745df
commit
dd87dc991c
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ minetest.register_craftitem("carts:cart", {
|
||||||
minetest.sound_play({name = "default_place_node_metal", gain = 0.5},
|
minetest.sound_play({name = "default_place_node_metal", gain = 0.5},
|
||||||
{pos = pointed_thing.above}, true)
|
{pos = pointed_thing.above}, true)
|
||||||
|
|
||||||
local player_name = placer and placer:get_player_name()
|
local player_name = placer and placer:get_player_name() or ""
|
||||||
if not minetest.is_creative_enabled(player_name) then
|
if not minetest.is_creative_enabled(player_name) then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue