Fix two crashes relating to food (#600)
* Fix crash when eating bread due to a missing prototype * Fix crash when finishing a food. It tried to get the transform component of a deleted entity.
This commit is contained in:
committed by
GitHub
parent
51c24150d3
commit
6bd818c8ce
@@ -178,6 +178,23 @@
|
||||
- type: Icon
|
||||
sprite: Objects/Food/baguette.rsi
|
||||
|
||||
- type: entity
|
||||
name: Bread (slice)
|
||||
parent: FoodBase
|
||||
id: FoodBreadSlice
|
||||
description:
|
||||
components:
|
||||
- type: Food
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.Nutriment
|
||||
Quantity: 8
|
||||
spawn_on_finish: TrashPlate
|
||||
- type: Sprite
|
||||
sprite: Objects/Food/breadslice.rsi
|
||||
- type: Icon
|
||||
sprite: Objects/Food/breadslice.rsi
|
||||
|
||||
- type: entity
|
||||
name: Banana bread (slice)
|
||||
parent: FoodBase
|
||||
|
||||
Reference in New Issue
Block a user