Commit 29f3d2d 1 parent cc9ae19 commit 29f3d2d Copy full SHA for 29f3d2d
File tree 3 files changed +7
-13
lines changed
Content.Server/Body/Respiratory
3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ private void ProcessThermalRegulation(float frameTime)
279
279
280
280
if ( temperatureComponent . CurrentTemperature > NormalBodyTemperature )
281
281
{
282
- if ( ! actionBlocker . CanSweat ( Owner ) ) return ;
282
+ if ( ! actionBlocker . CanSweat ( OwnerUid ) ) return ;
283
283
if ( ! _isSweating )
284
284
{
285
285
Owner . PopupMessage ( Loc . GetString ( "metabolism-component-is-sweating" ) ) ;
Original file line number Diff line number Diff line change @@ -131,18 +131,12 @@ public bool CanShiver(EntityUid uid)
131
131
return ! ev . Cancelled ;
132
132
}
133
133
134
- public bool CanSweat ( IEntity entity )
134
+ public bool CanSweat ( EntityUid uid )
135
135
{
136
- var ev = new SweatAttemptEvent ( entity ) ;
137
-
138
- RaiseLocalEvent ( entity . Uid , ev ) ;
136
+ var ev = new SweatAttemptEvent ( uid ) ;
137
+ RaiseLocalEvent ( uid , ev ) ;
139
138
140
139
return ! ev . Cancelled ;
141
140
}
142
-
143
- public bool CanSweat ( EntityUid uid )
144
- {
145
- return CanSweat ( EntityManager . GetEntity ( uid ) ) ;
146
- }
147
141
}
148
142
}
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ namespace Content.Shared.Body.Metabolism
4
4
{
5
5
public class SweatAttemptEvent : CancellableEntityEventArgs
6
6
{
7
- public SweatAttemptEvent ( IEntity entity )
7
+ public SweatAttemptEvent ( EntityUid uid )
8
8
{
9
- Entity = entity ;
9
+ Uid = uid ;
10
10
}
11
11
12
- public IEntity Entity { get ; }
12
+ public EntityUid Uid { get ; }
13
13
}
14
14
}
You can’t perform that action at this time.
0 commit comments