This bug can be reproduced by placing a car in the player's inventory and running the following command, which damages the car and then tries to set the health back to 1.0. It instead leaves the car at 0.2 health. If used on an item without entity data the item is restored to full health.
Code: Select all
/c game.player.get_main_inventory().find_item_stack("car").health = .2
game.player.get_main_inventory().find_item_stack("car").health = 1