Is it because of the (getid)+1); ? :l
|
Whenever this code is used the familar keeps modifying it's id by 1 and never stops, any idea how to fix?Code:if (inWilderness() && (getMask().getSwitchId() == originalId || getMask().getSwitchId() == -1)) { getMask().setSwitchId(getId() + 1); } else if (getMask().getSwitchId() != originalId) { getMask().setSwitchId(originalId); }
Is it because of the (getid)+1); ? :l
make it so once it increases one, it stops. Otherwise the value increase to an amount you won't want it too.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |