1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Update init.lua

Fixed an issue when A54 trips even when all the batteries of the train are turned off
This commit is contained in:
BlueSnooty
2022-06-02 00:48:45 +03:00
committed by GitHub
parent 7383dcdd45
commit e2ea72dd48

View File

@@ -589,7 +589,7 @@ function ENT:Think()
end
end
if self:ReadTrainWire(4)*self:ReadTrainWire(5) > 0 then
if self:ReadTrainWire(4)*self:ReadTrainWire(5)*self:ReadTrainWire(10) > 0 then
self.A54:TriggerInput("Set",0)
end