Merge branch 'adjustment-dont-remove-handitem' into 'ms4/dev'

Getting rid of handitem disposal

See merge request morningstar/Arcturus-Community!62
This commit is contained in:
John 2023-03-24 13:54:27 +00:00
commit cf55c2193d

View File

@ -1208,10 +1208,13 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
foundRightHolder[0] = habbo.getRoomUnit().getRightsLevel() != RoomRightLevels.NONE;
}
/* Habbo doesn't remove the handitem anymore, checked on February 25 2023
if (habbo.getRoomUnit().getHandItem() > 0 && millis - habbo.getRoomUnit().getHandItemTimestamp() > (Room.HAND_ITEM_TIME * 1000L)) {
this.giveHandItem(habbo, 0);
}
*/
if (habbo.getRoomUnit().getEffectId() > 0 && millis / 1000 > habbo.getRoomUnit().getEffectEndTimestamp()) {
this.giveEffect(habbo, 0, -1);
}