perf: make visual effects and heroes more resilient

This commit is contained in:
Friday authored and Nuno C. committed 2026-08-17 20:19:02 +01:00
1 parent 091f9043ee
commit 53a64328d7
6 files changed
+28 -7

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{{ $resource := .resource }}
{{ $spec := .spec }}
{{ $result := $resource }}
{{ with try ($resource.Resize $spec) }}
{{ with .Value }}{{ $result = . }}{{ end }}
{{ end }}
{{ return $result }}