ravmustang / AltisLife-eXpandedHousing

Other
5 stars 2 forks source link

Houses are double when spawned #2

Open nappel4life opened 7 years ago

nappel4life commented 7 years ago

If im in spawnmenu, then there were the houses listed twice and initialsed twice. To fix this, i only edited these lines.

_return = [];
{
    _pos = call compile format ["%1",_x select 1];
    _house = nearestObject [_pos, "House"];
    _house allowDamage false;
    _return pushBack [_x select 1,_containerss];
    //_return pushBack [_x select 1,_furnituress];
} forEach _houses;

i commented out the last pushback. The furnituress still works.

ravmustang commented 7 years ago

If you would like to make a pull request I will merge your correction

nappel4life commented 7 years ago

I don´t know how i do a pull request XD

Maihym commented 6 years ago

Instead of that, make this the code.

_return = []; { _pos = call compile format ["%1",_x select 1]; _house = nearestObject [_pos, "House"]; _house allowDamage false; _return pushBack [_x select 1]; } forEach _houses;