mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Merge branch 'crackable-fix' into 'dev'
Fix ticks in crackable furni interaction. See merge request morningstar/Arcturus-Community!445
This commit is contained in:
commit
42a65dc54b
@ -101,6 +101,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