修复了载具图标错误
This commit is contained in:
parent
355da3e1f9
commit
781988f32d
1 changed files with 2 additions and 4 deletions
|
@ -172,7 +172,7 @@ public class KillMessageOverlay {
|
|||
);
|
||||
}
|
||||
|
||||
Player player = Minecraft.getInstance().player;
|
||||
Player player = record.attacker;
|
||||
boolean renderItem = false;
|
||||
int itemIconW = damageTypeIcon != null ? w - targetNameWidth - 64 : w - targetNameWidth - 46;
|
||||
|
||||
|
@ -213,9 +213,7 @@ public class KillMessageOverlay {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
// 如果是枪械击杀,则渲染枪械图标
|
||||
if (record.stack.getItem() instanceof GunItem gunItem) {
|
||||
renderItem = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue