Skip to content

Commit

Permalink
Fix wire output visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Feb 6, 2024
1 parent 3dec11b commit b821555
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lua/entities/acf_engine/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -546,19 +546,19 @@ function ENT:UpdateOutputs(SelfTbl)

if SelfTbl.LastFuelUsage ~= FuelUsage then
SelfTbl.LastFuelUsage = FuelUsage
WireLib.TriggerOutput(SelfTbl, "Fuel Use", FuelUsage)
WireLib.TriggerOutput(self, "Fuel Use", FuelUsage)
end
if SelfTbl.LastTorque ~= Torque then
SelfTbl.LastTorque = Torque
WireLib.TriggerOutput(SelfTbl, "Torque", Torque)
WireLib.TriggerOutput(self, "Torque", Torque)
end
if SelfTbl.LastPower ~= Power then
SelfTbl.LastPower = Power
WireLib.TriggerOutput(SelfTbl, "Power", Power)
WireLib.TriggerOutput(self, "Power", Power)
end
if SelfTbl.LastRPM ~= FlyRPM then
SelfTbl.LastRPM = FlyRPM
WireLib.TriggerOutput(SelfTbl, "RPM", FlyRPM)
WireLib.TriggerOutput(self, "RPM", FlyRPM)
end
end

Expand Down Expand Up @@ -684,11 +684,11 @@ function ENT:CalcMassRatio(SelfTbl)

if SelfTbl.LastTotalMass ~= TotalMass then
SelfTbl.LastTotalMass = TotalMass
WireLib.TriggerOutput(SelfTbl, "Mass", Round(TotalMass, 2))
WireLib.TriggerOutput(self, "Mass", Round(TotalMass, 2))
end
if SelfTbl.LastPhysMass ~= PhysMass then
SelfTbl.LastPhysMass = PhysMass
WireLib.TriggerOutput(SelfTbl, "Physical Mass", Round(PhysMass, 2))
WireLib.TriggerOutput(self, "Physical Mass", Round(PhysMass, 2))
end
end

Expand Down
4 changes: 2 additions & 2 deletions lua/entities/acf_fueltank/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,11 @@ function ENT:Consume(Amount, SelfTbl)

if SelfTbl.LastFuel ~= Fuel then
SelfTbl.LastFuel = Fuel
WireLib.TriggerOutput(SelfTbl, "Fuel", Fuel)
WireLib.TriggerOutput(self, "Fuel", Fuel)
end
if SelfTbl.LastActivated ~= Activated then
SelfTbl.LastActivated = Activated
WireLib.TriggerOutput(SelfTbl, "Activated", Activated)
WireLib.TriggerOutput(self, "Activated", Activated)
end
end

Expand Down

0 comments on commit b821555

Please sign in to comment.