diff options
Diffstat (limited to 'advtrains/couple.lua')
-rw-r--r-- | advtrains/couple.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/advtrains/couple.lua b/advtrains/couple.lua index 9bc0fd5..0e7a481 100644 --- a/advtrains/couple.lua +++ b/advtrains/couple.lua @@ -15,8 +15,8 @@ local couple_max_dist=3 minetest.register_entity("advtrains:discouple", { visual="sprite", textures = {"advtrains_discouple.png"}, - collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, - visual_size = {x=1, y=1}, + collisionbox = {-0.3,-0.3,-0.3, 0.3,0.3,0.3}, + visual_size = {x=0.7, y=0.7}, initial_sprite_basepos = {x=0, y=0}, is_discouple=true, @@ -101,8 +101,8 @@ train2_is_backpos minetest.register_entity("advtrains:couple", { visual="sprite", textures = {"advtrains_couple.png"}, - collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, - visual_size = {x=1, y=1}, + collisionbox = {-0.3,-0.3,-0.3, 0.3,0.3,0.3}, + visual_size = {x=0.7, y=0.7}, initial_sprite_basepos = {x=0, y=0}, is_couple=true, @@ -114,6 +114,7 @@ minetest.register_entity("advtrains:couple", { self.object:remove() return end + self.object:set_armor_groups({immmortal=1}) end) end, get_staticdata=function(self) return "COUPLE" end, |