Getting rid of handitem disposal

This commit is contained in:
Yordi 2023-02-23 15:11:07 +01:00 committed by yordii
parent ffd01c2965
commit 54aa966e57

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);
}