Commit a6c71ed6 by Jonathan Thomas

Prevent crash due to missing texture when max friend/enemy + right click on entity

parent 7060873e
...@@ -12,6 +12,7 @@ All notable changes to **CreatureChat** are documented in this file. The format ...@@ -12,6 +12,7 @@ All notable changes to **CreatureChat** are documented in this file. The format
### Fixed ### Fixed
- Fixed a bug which broadcasts death messages for any mob with a customName (now it must also have a character sheet) - Fixed a bug which broadcasts death messages for any mob with a customName (now it must also have a character sheet)
- Prevent crash due to missing texture when max friend/enemy + right click on entity
## [1.2.0] - 2024-12-28 ## [1.2.0] - 2024-12-28
......
...@@ -70,9 +70,9 @@ public class BubbleRenderer { ...@@ -70,9 +70,9 @@ public class BubbleRenderer {
// Draw UI text background (based on friendship) // Draw UI text background (based on friendship)
// Draw TOP // Draw TOP
if (friendship == -3) { if (friendship == -3 && !base_name.endsWith("-player")) {
RenderSystem.setShaderTexture(0, textures.GetUI(base_name + "-enemy")); RenderSystem.setShaderTexture(0, textures.GetUI(base_name + "-enemy"));
} else if (friendship == 3) { } else if (friendship == 3 && !base_name.endsWith("-player")) {
RenderSystem.setShaderTexture(0, textures.GetUI(base_name + "-friend")); RenderSystem.setShaderTexture(0, textures.GetUI(base_name + "-friend"));
} else { } else {
RenderSystem.setShaderTexture(0, textures.GetUI(base_name)); RenderSystem.setShaderTexture(0, textures.GetUI(base_name));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment