Fix broken minecart

This commit is contained in:
Wuzzy 2017-02-01 19:47:58 +01:00
parent fe9de35032
commit 166b06e265

@ -40,7 +40,7 @@ function mcl_minecarts.cart:on_rightclick(clicker)
clicker:set_detach()
elseif not self._driver then
self._driver = player_name
default.player_attached[player_name] = true
mcl_core.player_attached[player_name] = true
clicker:set_attach(self.object, "", {x=0, y=3, z=0}, {x=0, y=0, z=0})
end
end
@ -72,7 +72,7 @@ function mcl_minecarts.cart:on_punch(puncher, time_from_last_punch, tool_capabil
if self._old_pos then
self.object:setpos(self._old_pos)
end
default.player_attached[self._driver] = nil
mcl_core.player_attached[self._driver] = nil
local player = minetest.get_player_by_name(self._driver)
if player then
player:set_detach()
@ -282,7 +282,7 @@ minetest.register_craftitem("mcl_minecarts:minecart", {
minetest.register_craft({
output = "mcl_minecarts:minecart",
recipe = {
{"default:steel_ingot", "", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"mcl_core:steel_ingot", "", "mcl_core:steel_ingot"},
{"mcl_core:steel_ingot", "mcl_core:steel_ingot", "mcl_core:steel_ingot"},
},
})