Skip to content

Commit 05693aa

Browse files
authored
v0.9.6.4
- Code optimization
1 parent 355a0bd commit 05693aa

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

FS25_gameplay_Real_Vehicle_Breakdowns/scripts/vehicles/specializations/events/JumperCableEvent.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function JumperCableEvent:readStream(streamId, connection)
3434
self.jumperTime = streamReadFloat32(streamId)
3535
self.jumperThreshold = streamReadInt32(streamId)
3636
self.activePlayerUserId = streamReadInt32(streamId)
37-
self:run(connection)
37+
self:run(connection)
3838
end
3939
function JumperCableEvent:run(connection)
4040
if self.vehicle ~= nil and self.vehicle:getIsSynchronized() then

FS25_gameplay_Real_Vehicle_Breakdowns/scripts/vehicles/specializations/events/RVBToggleSpec_Event.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ end
2121
function RVBToggleSpec_Event:writeStream(streamId, connection)
2222
NetworkUtil.writeNodeObject(streamId, self.vehicle)
2323
streamWriteBool(streamId, self.enabled)
24-
end
24+
end
2525
function RVBToggleSpec_Event:run(connection)
2626
if self.vehicle ~= nil and self.vehicle:getIsSynchronized() then
2727
local spec = self.vehicle.spec_faultData
@@ -31,4 +31,4 @@ function RVBToggleSpec_Event:run(connection)
3131
g_server:broadcastEvent(self, nil, nil, self.vehicle)
3232
end
3333
end
34-
end
34+
end

FS25_gameplay_Real_Vehicle_Breakdowns/scripts/vehicles/specializations/events/WorkshopCount_Event.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ local mt = Class(WorkshopCount_Event, Event)
44
InitEventClass(WorkshopCount_Event, "WorkshopCount_Event")
55

66
function WorkshopCount_Event.emptyNew()
7-
return Event.new(mt)
7+
return Event.new(mt)
88
end
99
function WorkshopCount_Event.new(count)
10-
local self = WorkshopCount_Event.emptyNew()
11-
self.count = count
12-
return self
10+
local self = WorkshopCount_Event.emptyNew()
11+
self.count = count
12+
return self
1313
end
1414
function WorkshopCount_Event:readStream(streamId, connection)
15-
self.count = streamReadInt16(streamId)
15+
self.count = streamReadInt16(streamId)
1616
self:run(connection)
1717
end
1818
function WorkshopCount_Event:writeStream(streamId, connection)
19-
streamWriteInt16(streamId, self.count)
19+
streamWriteInt16(streamId, self.count)
2020
end
2121
function WorkshopCount_Event:run(connection)
2222
local RVB = g_currentMission.vehicleBreakdowns

0 commit comments

Comments
 (0)