mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Added previous pneumatics version for compatibility with 3rd party 81-717/714 train types
This commit is contained in:
@@ -2210,7 +2210,7 @@ function ENT:ButtonEvent(button,state,ply)
|
||||
if ShouldFireEvents(self.ButtonBuffer[button],state) then
|
||||
if state == false and not self:OnButtonRelease(button,ply) then
|
||||
self:TriggerInput(button,0.0)
|
||||
if button:match("LineIsolationToggle") then self:UpdateIsolationConnectedCarCounter(button:sub(-24,-20)) end
|
||||
if button:match("LineIsolationToggle") and self.CarCount then self:UpdateIsolationConnectedCarCounter(button:sub(-24,-20)) end
|
||||
elseif state ~= false and not self:OnButtonPress(button,ply) then
|
||||
self:TriggerInput(button,1.0)
|
||||
if self.Plombs and button:sub(-2,-1) == "Pl" and self.Plombs[button:sub(1,-3)] then
|
||||
|
||||
Reference in New Issue
Block a user