Skip to content

Commit

Permalink
Update mods/carts/cart_entity.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 authored Jan 11, 2024
1 parent 35c1974 commit dd87dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/carts/cart_entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd87dc9

Please sign in to comment.