guibec / rpgcraft

RPGCraft - Minecraft / Terraria / RPGMaker mashup
MIT License
8 stars 2 forks source link

Simplify State Machine handling #122

Closed robinlavallee closed 5 years ago

robinlavallee commented 5 years ago

Fix #121

Enemies that were just spawned were in an invalid state. The bomb tried to interact with them (through the TouchComponent). It checked for its current state, and the current state was null, throwing a null exception. This stopped the Bomb coroutine completely from running.