mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-29 09:15:49 +00:00
Deny april fools outside of first april.
This commit is contained in:
parent
1ef6ec4178
commit
52ff6a4140
@ -345,6 +345,13 @@ void VersionFinal::reapply(const bool alreadyReseting)
|
||||
|
||||
void VersionFinal::finalize()
|
||||
{
|
||||
// HACK: deny april fools. my head hurts enough already.
|
||||
QDate now = QDate::currentDate();
|
||||
bool isAprilFools = now.month() == 4 && now.day() == 1;
|
||||
if (assets.endsWith("_af") && !isAprilFools)
|
||||
{
|
||||
assets = assets.left(assets.length() - 3);
|
||||
}
|
||||
if (assets.isEmpty())
|
||||
{
|
||||
assets = "legacy";
|
||||
|
Loading…
Reference in New Issue
Block a user