forked from DonBatman/mystreets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
55 lines (47 loc) · 2.77 KB
/
init.lua
File metadata and controls
55 lines (47 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
local use_stairs = core.settings:get_bool("mystreets.stairs", false)
if use_stairs then
dofile(core.get_modpath("mystreets").."/stairs.lua")
end
dofile(core.get_modpath("mystreets").."/asphalt.lua")
dofile(core.get_modpath("mystreets").."/asphalt_crafts.lua")
dofile(core.get_modpath("mystreets").."/billboard.lua")
dofile(core.get_modpath("mystreets").."/lights.lua")
dofile(core.get_modpath("mystreets").."/manholes.lua")
dofile(core.get_modpath("mystreets").."/mapgen.lua")
dofile(core.get_modpath("mystreets").."/oil.lua")
dofile(core.get_modpath("mystreets").."/ores.lua")
dofile(core.get_modpath("mystreets").."/paint.lua")
dofile(core.get_modpath("mystreets").."/plastic.lua")
dofile(core.get_modpath("mystreets").."/posts.lua")
dofile(core.get_modpath("mystreets").."/powerpoles.lua")
dofile(core.get_modpath("mystreets").."/railroad_crossing.lua")
dofile(core.get_modpath("mystreets").."/ramps.lua")
dofile(core.get_modpath("mystreets").."/sewerwater.lua")
dofile(core.get_modpath("mystreets").."/steel.lua")
dofile(core.get_modpath("mystreets").."/streetsigns.lua")
dofile(core.get_modpath("mystreets").."/traffic_cone.lua")
dofile(core.get_modpath("mystreets").."/traffic_light.lua")
print("mystreets mod loaded succesfully!")
if core.get_modpath("myconcrete") then
core.register_alias("mystreets:sidewalk", "myconcrete:sidewalk")
core.register_alias("mystreets:concrete", "myconcrete:concrete")
core.register_alias("mystreets:fence_concrete", "myconcrete:fence_concrete")
core.register_alias("mystreets:precast_concrete_seperating_wall", "myconcrete:precast_concrete_seperating_wall")
core.register_alias("mystreets:precast_concrete_cylinder", "myconcrete:precast_concrete_cylinder")
core.register_alias("mystreets:ramp_sidewalk", "myconcrete:ramp_sidewalk")
core.register_alias("mystreets:ramp_sidewalk_long", "myconcrete:ramp_sidewalk_long")
core.register_alias("mystreets:ramp_concrete", "myconcrete:ramp_concrete")
core.register_alias("mystreets:ramp_concrete_long", "myconcrete:ramp_concrete_long")
return nil
else
dofile(core.get_modpath("mystreets").."/concrete.lua")
core.register_alias("myconcrete:sidewalk", "mystreets:sidewalk")
core.register_alias("myconcrete:concrete", "mystreets:concrete")
core.register_alias("myconcrete:fence_concrete", "mystreets:fence_concrete")
core.register_alias("myconcrete:precast_concrete_seperating_wall", "mystreets:precast_concrete_seperating_wall")
core.register_alias("myconcrete:precast_concrete_cylinder", "mystreets:precast_concrete_cylinder")
core.register_alias("myconcrete:ramp_sidewalk", "mystreets:ramp_sidewalk")
core.register_alias("myconcrete:ramp_sidewalk_long", "mystreets:ramp_sidewalk_long")
core.register_alias("myconcrete:ramp_concrete", "mystreets:ramp_concrete")
core.register_alias("myconcrete:ramp_concrete_long", "mystreets:ramp_concrete_long")
end