Use non-generic TryComp() for metadata & transform (#28133)
This commit is contained in:
@@ -271,7 +271,7 @@ namespace Content.Server.Physics.Controllers
|
||||
consoleEnt = cargoConsole.Entity;
|
||||
}
|
||||
|
||||
if (!TryComp<TransformComponent>(consoleEnt, out var xform)) continue;
|
||||
if (!TryComp(consoleEnt, out TransformComponent? xform)) continue;
|
||||
|
||||
var gridId = xform.GridUid;
|
||||
// This tries to see if the grid is a shuttle and if the console should work.
|
||||
|
||||
Reference in New Issue
Block a user