We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59b9f6f commit b4cff94Copy full SHA for b4cff94
src/utilities/connection/packetHandler.ts
@@ -218,8 +218,8 @@ export const packetHandler =
218
.catch(handleError(addMessage, respawnError))
219
} else if (healthRef.current !== null && newHealth < healthRef.current) {
220
const info = healthMessage
221
- .replace('%prev', healthRef.current.toString())
222
- .replace('%new', newHealth.toString())
+ .replace('%prev', Math.ceil(healthRef.current).toString())
+ .replace('%new', Math.ceil(newHealth).toString())
223
addMessage(info)
224
} // LOW-TODO: Long-term it would be better to have a UI.
225
healthRef.current = newHealth
0 commit comments