Compare commits

...

2 Commits

Author SHA1 Message Date
Alexsandro Percy ccb0ed37b2 renamed catrelle tl to 4f 2023-12-04 06:45:50 -03:00
Alexsandro Percy af6bbd3c5f removed wrong dependency 2023-12-04 06:31:44 -03:00
3 changed files with 9 additions and 8 deletions

View File

@ -44,8 +44,8 @@ minetest.register_craftitem("automobiles_catrelle:catrelle", {
})
-- catrelle TL
minetest.register_craftitem("automobiles_catrelle:catrelle_tl", {
description = S("Catrelle TL"),
minetest.register_craftitem("automobiles_catrelle:catrelle_4f", {
description = S("Catrelle 4F"),
inventory_image = "automobiles_catrelle.png",
liquids_pointable = false,
@ -56,7 +56,7 @@ minetest.register_craftitem("automobiles_catrelle:catrelle_tl", {
local pointed_pos = pointed_thing.above
--pointed_pos.y=pointed_pos.y+0.2
local car = minetest.add_entity(pointed_pos, "automobiles_catrelle:catrelle_tl")
local car = minetest.add_entity(pointed_pos, "automobiles_catrelle:catrelle_4f")
if car and placer then
local ent = car:get_luaentity()
local owner = placer:get_player_name()
@ -67,7 +67,7 @@ minetest.register_craftitem("automobiles_catrelle:catrelle_tl", {
car:set_yaw(placer:get_look_horizontal())
itemstack:take_item()
ent.object:set_acceleration({x=0,y=-automobiles_lib.gravity,z=0})
automobiles_lib.setText(ent, "Catrelle TL")
automobiles_lib.setText(ent, "Catrelle 4F")
automobiles_lib.create_inventory(ent, ent._trunk_slots, owner)
end
end
@ -81,7 +81,7 @@ minetest.register_craftitem("automobiles_catrelle:catrelle_tl", {
--
if minetest.get_modpath("default") then
minetest.register_craft({
output = "automobiles_catrelle:catrelle_tl",
output = "automobiles_catrelle:catrelle_4f",
recipe = {
{"automobiles_catrelle:catrelle", "default:glass", "default:steelblock"},
}

View File

@ -625,7 +625,7 @@ catrelle.car_properties1 = {
minetest.register_entity("automobiles_catrelle:catrelle", catrelle.car_properties1)
catrelle.car_properties2 = automobiles_lib.properties_copy(catrelle.car_properties1)
catrelle.car_properties2._vehicle_name = "Catrelle TL"
catrelle.car_properties2._vehicle_name = "Catrelle 4F"
catrelle.car_properties2.initial_properties = automobiles_lib.properties_copy(catrelle.car_properties1.initial_properties)
catrelle.car_properties2.initial_properties.textures = automobiles_lib.properties_copy(catrelle.car_properties1.initial_properties.textures)
catrelle.car_properties2.initial_properties.textures[9] = "automobiles_alpha.png"
@ -636,5 +636,5 @@ catrelle.car_properties2._trunk_slots = 16
catrelle.car_properties2._extra_items_function = catrelle.extra_parts
catrelle.car_properties2._destroy_function = catrelle.destroy
minetest.register_entity("automobiles_catrelle:catrelle_tl", catrelle.car_properties2)
minetest.register_entity("automobiles_catrelle:catrelle_4f", catrelle.car_properties2)

View File

@ -187,7 +187,7 @@ function automobiles_lib.attach_pax(self, player, onside)
local name = player:get_player_name()
local eye_y = -4
if airutils.detect_player_api(player) == 1 then
if automobiles_lib.detect_player_api(player) == 1 then
eye_y = 2.5
end
@ -733,6 +733,7 @@ local old_entities = {
"automobiles_buggy:pointer",
"automobiles_catrelle:pivot_mesh",
"automobiles_catrelle:pointer",
"automobiles_catrelle:catrelle_tl",
"automobiles_coupe:pivot_mesh",
"automobiles_coupe:pointer",
"automobiles_delorean:pivot_mesh",