Skip to content

Commit

Permalink
change alarm reset cooldown option to true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckscor3 committed Jun 22, 2023
1 parent be60e78 commit 4f15670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- Change: The Universal Key Changer can now be used by players in creative mode on any passcode-protected block or briefcase, regardless of its owner
- Change: Passcodes no longer have a maximum length restriction
- Change: Initially setting the passcode of a Briefcase now uses the same UI as inserting the passcode when opening a Briefcase
- Change: The "Reset cooldown" option for alarms is now set to "true" by default (does not apply to already existing alarms)
- API: IModuleInventory#getModuleDescriptionId to make it possible to have shared descriptions
- API: Renamed Option#readFromNBT to Option#load and Option#writeToNBT to Option#save
- API: All occurrences of "password" in API class and method names have been switched out with "passcode" (for example, IPasswordProtected#getPassword -> IPasscodeProtected#getPasscode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class AlarmBlockEntity extends CustomizableBlockEntity implements ITickin
public static final int MAXIMUM_ALARM_SOUND_LENGTH = 3600; //one hour
private IntOption range = new IntOption("range", 17, 0, ConfigHandler.SERVER.maxAlarmRange.get(), 1, true);
private DisabledOption disabled = new DisabledOption(false);
private BooleanOption resetCooldown = new BooleanOption("resetCooldown", false);
private BooleanOption resetCooldown = new BooleanOption("resetCooldown", true);
private int cooldown = 0;
private boolean isPowered = false;
private SoundEvent sound = SCSounds.ALARM.event;
Expand Down

0 comments on commit 4f15670

Please sign in to comment.