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 3284669e24
commit 6fc374b762
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -22,10 +22,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;
} }