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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user