Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
1 addition
and
1 deletion.
-
+1
−1
mods/carts/cart_entity.lua
|
@@ -93,7 +93,7 @@ function cart_entity:on_punch(puncher, time_from_last_punch, tool_capabilities, |
|
|
-- Pick up cart |
|
|
local inv = puncher:get_inventory() |
|
|
if not (creative and creative.is_enabled_for |
|
|
+ and creative.is_enabled_for(puncher:get_player_name())) |
|
|
and creative.is_enabled_for(puncher:get_player_name())) |
|
|
or not inv:contains_item("main", "carts:cart") then |
|
|
local leftover = inv:add_item("main", "carts:cart") |
|
|
-- If no room in inventory add a replacement cart to the world |
|
|