aboutsummaryrefslogtreecommitdiff
path: root/advtrains_signals_ks/init.lua
diff options
context:
space:
mode:
author1F616EMO <root@1f616emo.xyz>2024-08-31 23:15:42 +0800
committerorwell <orwell@bleipb.de>2024-09-02 22:25:51 +0200
commitfcfe21f1976aee7b8db64f1f8ef4aaf5f78a1c06 (patch)
tree14fd493803e69e4c53bd98545157ba423db670b7 /advtrains_signals_ks/init.lua
parent852e2f4219c4e7a9bebf7b27bb1c026f98719f97 (diff)
downloadadvtrains-fcfe21f1976aee7b8db64f1f8ef4aaf5f78a1c06.tar.gz
advtrains-fcfe21f1976aee7b8db64f1f8ef4aaf5f78a1c06.tar.bz2
advtrains-fcfe21f1976aee7b8db64f1f8ef4aaf5f78a1c06.zip
Fix Ks Shunting Signal collision box
Diffstat (limited to 'advtrains_signals_ks/init.lua')
-rwxr-xr-xadvtrains_signals_ks/init.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua
index bdbd50d..258b868 100755
--- a/advtrains_signals_ks/init.lua
+++ b/advtrains_signals_ks/init.lua
@@ -210,6 +210,8 @@ for _, rtab in ipairs({
danger = {asp = { main = false, shunt = false }, n = "shuntd", ici=true},
shuntd = {asp = { main = false, shunt = true } , n = "danger"},
}) do
+ local sbox = table.copy(rtab.sbox)
+ sbox[5] = 0
minetest.register_node("advtrains_signals_ks:ra_"..typ.."_"..rot, {
description = "Ks Shunting Signal",
drawtype = "mesh",
@@ -223,7 +225,11 @@ for _, rtab in ipairs({
paramtype2 = "facedir",
selection_box = {
type = "fixed",
- fixed = {-1/4, -1/2, -1/4, 1/4, 0, 1/4}
+ fixed = {sbox, rotation_sbox}
+ },
+ collision_box = {
+ type = "fixed",
+ fixed = sbox,
},
groups = {
cracky = 2,