Do not take cart from inventory in creative mode

Correct comments and move some variables
This commit is contained in:
SmallJoker
2016-10-12 17:22:49 +02:00
parent 7d6132e748
commit b741282843
2 changed files with 23 additions and 23 deletions

View File

@ -6,10 +6,11 @@ function boost_cart:get_sign(z)
end
end
function boost_cart:manage_attachment(player, status, obj)
function boost_cart:manage_attachment(player, obj)
if not player then
return
end
local status = obj ~= nil
local player_name = player:get_player_name()
if default.player_attached[player_name] == status then
return