mojira.dev

MNight_4

Assigned

No issues.

Reported

MC-278087 Minecraft crashes the moment you refocus the window Duplicate

Comments

Man, why… It was fun to use ¬¬

Hi again, I found something again. Another way to crash due to the SAME error, but not by minimizing minecraft. Just adjust the windows size at the point that the game is not longer visible on the screen and crashes due the same error.

[media]

 

Here is the crash log generated:

[media][media]

I can confirm this affects 1.21.3

An alternative would be to use an “Item Modifier” to change the damage of the item, but even doing this still an issue.

[media]

"Set damage" only allows you to use a value between 0~1, being forced to calculate ( 1 / max_damage x amount of damage to repair). This is possible to achieve with a scoreboard, but due to the use of decimals, if the item uses an high max_damage value, it's possible that the result will give an erroneous decimal.

It would be much more appropriate (if this is possible) to revert the change that doesn't allow the use of negative values, or change the field of the “damage_item” effect, to allow discounting the damage value.