Compare commits

...
Author SHA1 Message Date
YoyoNow fa6e6d3dc9 Fix GameModeConfig
Deploy / Build (push) Successful in 2m17s
Deploy / Deploy (push) Failing after 7s
2026-08-27 11:08:14 +02:00
YoyoNow c146391646 Fix GameModeConfig
Deploy / Build (push) Failing after 2m2s
Deploy / Deploy (push) Skipped
2026-08-27 11:05:17 +02:00
YoyoNow 32611fd1d6 Fix GameModeConfig
Deploy / Build (push) Failing after 1m21s
Deploy / Deploy (push) Skipped
2026-08-27 11:01:36 +02:00
Chaoscaot 56fd93a474 Merge branch 'main' into version/legacy
Deploy / Build (push) Successful in 1m24s
Deploy / Deploy (push) Failing after 8s
2026-05-15 16:02:51 +02:00
steamwar-ci-bot c27789daa8 Merge pull request 'Backport CommonCore changes from #354 to version/legacy' (#355) from backport/commoncore/pr-354-to-version-legacy into version/legacy
Deploy / Build (push) Successful in 1m23s
Deploy / Deploy (push) Successful in 7s
Reviewed-on: #355
2026-05-15 15:22:33 +02:00
SteamWar Backport Bot 56a7344d67 Backport CommonCore changes from #354
Pull Request Build / Build (pull_request) Failing after 1m11s
Test Backporting
2026-05-15 13:09:59 +00:00
3 changed files with 17 additions and 12 deletions
-3
View File
@@ -63,9 +63,6 @@ jobs:
cp "SpigotCore/build/libs/SpigotCore-all.jar" "deploy/SpigotCore.jar"
cp "Teamserver/build/libs/Teamserver.jar" "deploy/Builder.jar"
cp "TowerRun/build/libs/TowerRun.jar" "deploy/TowerRun.jar"
cp "VelocityCore/Persistent/build/libs/Persistent.jar" "deploy/PersistentVelocityCore.jar"
cp "VelocityCore/Dependencies/build/libs/Dependencies-all.jar" "deploy/DependenciesVelocityCore.jar"
cp "VelocityCore/build/libs/VelocityCore-all.jar" "deploy/VelocityCore.jar"
cp "WebsiteBackend/build/libs/WebsiteBackend-all.jar" "deploy/website-api.jar"
cp "CLI/build/distributions/sw.zip" "deploy/sw.zip"
@@ -30,6 +30,7 @@ import java.time.LocalDateTime;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@ToString
public final class GameModeConfig<M, W> {
@@ -710,13 +711,26 @@ public final class GameModeConfig<M, W> {
Map<Set<M>, Integer> Limited = new HashMap<>();
for (Map<?, ?> entry : loader.getMapList("Limited")) {
int amount = (Integer) entry.get("Amount");
Set<String> materials = new HashSet<>((List<String>) entry.get("Materials"));
Set<M> materials = Stream.of((List<String>) entry.get("Materials"))
.filter(Objects::nonNull)
.flatMap(List::stream)
.map(String::toUpperCase)
.map(material -> {
try {
return loader.materialMapper.apply(material);
} catch (Exception e) {
return null;
}
})
.filter(Objects::nonNull)
.collect(Collectors.toSet());
if (amount == 0) {
materials.forEach(material -> {
Limited.put(Collections.singleton(loader.materialMapper.apply(material.toUpperCase())), 0);
Limited.put(Collections.singleton(material), 0);
});
} else {
Limited.put(Collections.unmodifiableSet(materials.stream().map(String::toUpperCase).map(loader.materialMapper).collect(Collectors.toSet())), amount);
Limited.put(materials, amount);
}
}
SQLWrapper.impl.getMaterialWithGreaterBlastResistance(MaxBlastResistance).forEach(material -> {
-6
View File
@@ -251,11 +251,5 @@ include("TowerRun")
include("TutorialSystem")
include(
"VelocityCore",
"VelocityCore:Dependencies",
"VelocityCore:Persistent"
)
include("TNTLeague")
include("WebsiteBackend")