Skip to content

Commit 5c229fe

Browse files
committed
🐛(wayzer/map/backCompatibility) 跟随wayzer/maps改动
1 parent 1a1d3af commit 5c229fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/wayzer/map/backCompatibility.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ listenTo<MapChangeEvent>(Event.Priority.Before) {
1414
.filterNot { it.isEmpty() }
1515
.mapNotNull { content.getByName<UnitType>(ContentType.unit, it) }
1616
if (oldBanUnit.isNotEmpty()) rules.bannedUnits.addAll(*oldBanUnit.toTypedArray())
17-
val time = info.map.tag("saved")?.toLongOrNull()?.let { Instant.ofEpochMilli(it) } ?: return@listenTo
17+
val time = map.tag("saved")?.toLongOrNull()?.let { Instant.ofEpochMilli(it) } ?: return@listenTo
1818

1919
if (!rules.tags.containsKey("@banTeam") &&
2020
Calendar.getInstance().apply { set(2020, 3 - 1, 3) }.toInstant() < time &&//too old, may no pvp protect

0 commit comments

Comments
 (0)