mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-07 13:36:44 +01:00
Change christmas check to include the 24th - 26th Closes #299
This commit is contained in:
parent
ec8f92e151
commit
57754d8dec
1 changed files with 1 additions and 2 deletions
|
@ -23,10 +23,9 @@ public class DeerAntlers extends WearableGear {
|
|||
dayChecked = true;
|
||||
Calendar cal = Calendar.getInstance();
|
||||
dayResult = cal.get(Calendar.MONTH) == Calendar.DECEMBER
|
||||
&& cal.get(Calendar.DAY_OF_MONTH) == 25;
|
||||
&& Math.abs(cal.get(Calendar.DAY_OF_MONTH) - 25) < 2;
|
||||
}
|
||||
|
||||
|
||||
return dayResult;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue