9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-27 02:29:10 +00:00

Compare commits

...

3 Commits
3.6.7 ... 3.6.8

Author SHA1 Message Date
William
52ec138273 fix: suppress map cursor paper exception 2024-08-11 12:52:23 +01:00
William
0f7a866652 test: bump test deps to 1.21.1 2024-08-11 12:25:43 +01:00
William
eeb52ac41e deps: bump item-nbt-api to 2.13.2
support MC 1.21.1
2024-08-11 12:25:03 +01:00
5 changed files with 20 additions and 20 deletions

View File

@@ -9,7 +9,7 @@ dependencies {
implementation 'net.kyori:adventure-platform-bukkit:4.3.3' implementation 'net.kyori:adventure-platform-bukkit:4.3.3'
implementation 'dev.triumphteam:triumph-gui:3.1.10' implementation 'dev.triumphteam:triumph-gui:3.1.10'
implementation 'space.arim.morepaperlib:morepaperlib:0.4.4' implementation 'space.arim.morepaperlib:morepaperlib:0.4.4'
implementation 'de.tr7zw:item-nbt-api:2.13.1' implementation 'de.tr7zw:item-nbt-api:2.13.2'
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT' compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
compileOnly 'com.github.retrooper.packetevents:spigot:2.3.0' compileOnly 'com.github.retrooper.packetevents:spigot:2.3.0'

View File

@@ -424,19 +424,23 @@ public interface BukkitMapPersister {
@NotNull @NotNull
private MapData extractMapData() { private MapData extractMapData() {
final List<MapBanner> banners = Lists.newArrayList(); final List<MapBanner> banners = Lists.newArrayList();
final String BANNER_PREFIX = "banner_"; try {
for (int i = 0; i < getCursors().size(); i++) { final String BANNER_PREFIX = "banner_";
final MapCursor cursor = getCursors().getCursor(i); for (int i = 0; i < getCursors().size(); i++) {
final String type = cursor.getType().name().toLowerCase(Locale.ENGLISH); final MapCursor cursor = getCursors().getCursor(i);
if (type.startsWith(BANNER_PREFIX)) { final String type = cursor.getType().name().toLowerCase(Locale.ENGLISH);
banners.add(new MapBanner( if (type.startsWith(BANNER_PREFIX)) {
type.replaceAll(BANNER_PREFIX, ""), banners.add(new MapBanner(
cursor.getCaption() == null ? "" : cursor.getCaption(), type.replaceAll(BANNER_PREFIX, ""),
cursor.getX(), cursor.getCaption() == null ? "" : cursor.getCaption(),
mapView.getWorld() != null ? mapView.getWorld().getSeaLevel() : 128, cursor.getX(),
cursor.getY() mapView.getWorld() != null ? mapView.getWorld().getSeaLevel() : 128,
)); cursor.getY()
));
}
} }
} catch (Throwable ignored) {
} }
return MapData.fromPixels(pixels, getDimension(), (byte) 2, banners, List.of()); return MapData.fromPixels(pixels, getDimension(), (byte) 2, banners, List.of());
} }

View File

@@ -3,7 +3,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.daemon=true org.gradle.daemon=true
javaVersion=17 javaVersion=17
plugin_version=3.6.7 plugin_version=3.6.8
plugin_archive=husksync plugin_archive=husksync
plugin_description=A modern, cross-server player data synchronization system plugin_description=A modern, cross-server player data synchronization system

View File

@@ -49,10 +49,6 @@ shadowJar {
tasks { tasks {
runServer { runServer {
minecraftVersion('1.21') minecraftVersion('1.21.1')
downloadPlugins {
url('https://download.luckperms.net/1549/bukkit/loader/LuckPerms-Bukkit-5.4.134.jar')
}
} }
} }

View File

@@ -13,7 +13,7 @@ from tqdm import tqdm
class Parameters: class Parameters:
root_dir = './servers/' root_dir = './servers/'
proxy_version = "1.21" proxy_version = "1.21"
minecraft_version = '1.21' minecraft_version = '1.21.1'
eula_agreement = 'true' eula_agreement = 'true'
backend_names = ['alpha', 'beta'] backend_names = ['alpha', 'beta']