apace100 / apoli

MIT License
40 stars 46 forks source link

Fix crash issue when trying to check for a power on a non-living entity #89

Closed eggohito closed 1 year ago

eggohito commented 1 year ago

This PR fixes the issue where using the power or resource entity condition type without using the living entity condition type beforehand would cause a crash.

It would be now properly handled by using ComponentKey#maybeGet to get the power component from entities that can only have it