Fix broken minecart

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

View file

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