Change christmas check to include the 24th - 26th Closes #299

This commit is contained in:
Sollace 2025-01-05 12:15:59 +01:00
parent ec8f92e151
commit 57754d8dec
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

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