Skip to content

Commit

Permalink
Cherry-picked commit 717da4a from space-wizards/space-station-14/master
Browse files Browse the repository at this point in the history
  • Loading branch information
DoutorWhite authored and SimpleStation14 committed Apr 21, 2024
1 parent 3bf08c7 commit ce6d8f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Content.Client/Movement/Systems/FloorOcclusionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ protected override void SetEnabled(EntityUid uid, FloorOcclusionComponent compon

private void SetShader(SpriteComponent sprite, bool enabled)
{
var shader = _proto.Index<ShaderPrototype>("HorizontalCut").Instance();

if (sprite.PostShader is not null && sprite.PostShader != shader)
return;

if (enabled)
{
sprite.PostShader = _proto.Index<ShaderPrototype>("HorizontalCut").Instance();
sprite.PostShader = shader;
}
else
{
Expand Down

0 comments on commit ce6d8f4

Please sign in to comment.