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 c8a28027ef
commit 3effecea00
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; dayChecked = true;
Calendar cal = Calendar.getInstance(); Calendar cal = Calendar.getInstance();
dayResult = cal.get(Calendar.MONTH) == Calendar.DECEMBER 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; return dayResult;
} }