This commit is contained in:
Anuken
2020-12-08 14:23:13 -05:00
parent 9bd2057237
commit 8d4ab2d7fb
2 changed files with 2 additions and 19 deletions

View File

@@ -117,6 +117,8 @@ abstract class PayloadComp implements Posc, Rotc, Hitboxc, Unitc{
u.rotation(rotation);
//reset the ID to a new value to make sure it's synced
u.id = EntityGroup.nextId();
//decrement count to prevent double increment
if(!u.isAdded()) u.team.data().updateCount(u.type, -1);
u.add();
return true;