Fix pipe net conservation laws (#8540)

This commit is contained in:
Leon Friedrich
2022-06-03 22:09:51 +12:00
committed by GitHub
parent a5410f9c2e
commit f5dfba9db4
3 changed files with 61 additions and 21 deletions

View File

@@ -30,7 +30,9 @@ namespace Content.Server.Rotatable
private void AddRotateVerbs(EntityUid uid, RotatableComponent component, GetVerbsEvent<Verb> args)
{
if (!args.CanAccess || !args.CanInteract)
if (!args.CanAccess
|| !args.CanInteract
|| Transform(uid).NoLocalRotation) // Good ol prototype inheritance, eh?
return;
// Check if the object is anchored, and whether we are still allowed to rotate it.