Skip to content

Fix stale texture cleanup on build - #9

Merged
illmatix merged 1 commit into
mainfrom
fix/stale-texture-cleanup
Mar 13, 2026
Merged

Fix stale texture cleanup on build#9
illmatix merged 1 commit into
mainfrom
fix/stale-texture-cleanup

Conversation

@illmatix

Copy link
Copy Markdown
Owner

Summary

  • Ice skates and skateblade items appeared invisible in inventory due to stale 16x16 texture PNGs left in the deploy directory from prior builds
  • The CopyToMods MSBuild target copies new files but never cleaned old ones, so TextureGenerator.TryGet() found the stale PNGs and skipped 32x32 runtime generation
  • Added <RemoveDir> for the assets directory before the asset copy step in the build, ensuring stale files are always cleaned

Test plan

  • dotnet build succeeds
  • Deployed textures/ dir contains only icerinkcreator.png (no stale blade/strap PNGs)
  • In-game: ice skates and skateblades show colored 3D item icons in creative inventory
  • Check game logs for texture errors

🤖 Generated with Claude Code

The CopyToMods build target was incremental — it copied new files but
never removed old ones. Stale 16x16 texture PNGs from a previous build
persisted in the deploy directory, causing TextureGenerator to skip
runtime generation of proper 32x32 textures. Item icons appeared blank.

Adding RemoveDir before the asset copy ensures a clean deploy every build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the chore Build, CI, dependencies label Mar 13, 2026
@illmatix
illmatix merged commit 12a1f86 into main Mar 13, 2026
2 checks passed
@illmatix
illmatix deleted the fix/stale-texture-cleanup branch March 13, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI, dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant