Update mods/carts/cart_entity.lua

This commit is contained in:
sfan5 2024-01-11 15:49:34 +01:00 committed by GitHub
parent 35c19745df
commit dd87dc991c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ minetest.register_craftitem("carts:cart", {
minetest.sound_play({name = "default_place_node_metal", gain = 0.5},
{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
itemstack:take_item()
end