mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Fix ticks in crackable furni interaction.
This commit is contained in:
parent
2d99f8b579
commit
8f24dd48d0
@ -100,6 +100,11 @@ public class InteractionCrackable extends HabboItem {
|
|||||||
if (rewardData.requiredEffect > 0 && habbo.getRoomUnit().getEffectId() != rewardData.requiredEffect)
|
if (rewardData.requiredEffect > 0 && habbo.getRoomUnit().getEffectId() != rewardData.requiredEffect)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(this.ticks < 1)
|
||||||
|
{
|
||||||
|
// If there are no ticks (for example because the room has been reloaded), check the current extradata of the item and update the ticks.
|
||||||
|
this.ticks = Integer.parseInt(this.getExtradata());
|
||||||
|
}
|
||||||
this.ticks++;
|
this.ticks++;
|
||||||
this.setExtradata("" + (this.ticks));
|
this.setExtradata("" + (this.ticks));
|
||||||
this.needsUpdate(true);
|
this.needsUpdate(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user