Skip to content

Conversation

Copy link

Copilot AI commented Feb 1, 2026

Placing bear meat triggered a warning about unknown entity type 'BearMeat' and rendered as a colored square fallback instead of the proper sprite.

Root cause: Server sends entity type as Java class name (BearMeat) but client sprite dictionary only mapped entity display names (Bear Meat). Additionally, meat entities referenced wrong image files.

Server changes:

  • BearMeat.java: Changed image path from bear.pngbearMeat.png
  • ChickenMeat.java: Changed image path from chicken.pngchickenMeat.png

Client changes:

  • Added class name mappings to sprite dictionary for lookup by entity type:
    # Mapped by class name (entity type) for entities where type != name
    'BearMeat': "assets/images/bearMeat.png",
    'ChickenMeat': "assets/images/chickenMeat.png",
    'DeerMeat': "assets/images/deerMeat.png",

Meat entities now render with correct sprites instead of fallback colored squares.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…d add class name sprite mappings

Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Copilot AI changed the title [WIP] Transition to Spring Boot server and Pygame client Fix meat entity rendering: correct image paths and add class name sprite mappings Feb 1, 2026
@dmccoystephenson dmccoystephenson marked this pull request as ready for review February 1, 2026 23:20
@dmccoystephenson dmccoystephenson merged commit 7af3c98 into feat/server-client Feb 1, 2026
2 checks passed
@dmccoystephenson dmccoystephenson deleted the copilot/sub-pr-266 branch February 1, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants