veger / TLBE

TLBE - Time Lapse Base Edition
MIT License
9 stars 6 forks source link

Do not take vehicles into account for base size calculation #23

Closed fortysixandtwo closed 3 years ago

fortysixandtwo commented 3 years ago

This patch uses LuaPlayerBuiltEntityEventFilters to make sure that the TLBE.Main.entity_built () callback is not called for vehicles.

Additionaly during base size recalculation we skip entities of type car (currently cars and tanks).

Fixes #22

Please note, that I haven't yet tested this patch (will probably do it soon-ish).

veger commented 3 years ago

I verified that without this fix the base tracker is indeed influenced by placing vehicles (car, tank, spidertron) and with this fix the base tracker does not care about them anymore :+1: