Map: game servers send tiles, players and overlay; BlueMap and LiveMapSync removed from the Java side
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DjMbLQujBHunCCu5GpsHaT
This commit is contained in:
31 files changed
+268
-596
No files matched your search
@@ -33,7 +33,7 @@ public final class Bridge {
|
||||
}));
|
||||
integration.startClaimSync();
|
||||
Path config = Path.of("config/scopenet.properties");
|
||||
if (Settings.liveMapEnabled(config)) integration.enableLiveMap();
|
||||
if (Settings.mapEnabled(config)) integration.enableMap(server.getWorldPath(net.minecraft.world.level.storage.LevelResource.ROOT), Path.of("config/scopenet/map"));
|
||||
} catch (Exception e) {
|
||||
// Throwing aborts startup; silently disabling an auth mod is unsafe.
|
||||
throw new IllegalStateException("SCOPENET cannot start: " + e.getMessage(), e);
|
||||
@@ -71,13 +71,13 @@ public final class Bridge {
|
||||
current.tick();
|
||||
if (++mapTicks >= 20) {
|
||||
mapTicks = 0;
|
||||
List<LiveMapSync.Player> positions = new ArrayList<>();
|
||||
List<net.scopenet.worldmap.WorldMapSync.Player> positions = new ArrayList<>();
|
||||
for (ServerPlayer player : server.getPlayerList().getPlayers()) {
|
||||
positions.add(new LiveMapSync.Player(player.getUUID().toString(), player.getName().getString(), Compat.dimension(player),
|
||||
positions.add(new net.scopenet.worldmap.WorldMapSync.Player(player.getUUID().toString(), player.getName().getString(), Compat.dimension(player),
|
||||
Math.round(player.getX() * 10) / 10.0, Math.round(player.getY() * 10) / 10.0, Math.round(player.getZ() * 10) / 10.0,
|
||||
Math.round(player.getYRot()), Math.round(player.getXRot())));
|
||||
}
|
||||
current.liveMapPlayers(positions);
|
||||
current.mapPlayers(positions);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user