From 190c73493dd9795ebbb2e844bd5d163f9b29688b Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Wed, 3 Sep 2025 23:10:06 +0200 Subject: [PATCH] fix: missing continue and license header --- .../bukkit/schematic/NbtGsonSerializer.java | 18 ++++++++++++++++++ .../bukkit/schematic/StateWrapper.java | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/NbtGsonSerializer.java b/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/NbtGsonSerializer.java index 734b50f99..8e29f3e6a 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/NbtGsonSerializer.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/NbtGsonSerializer.java @@ -1,3 +1,21 @@ +/* + * PlotSquared, a land and world management plugin for Minecraft. + * Copyright (C) IntellectualSites + * Copyright (C) IntellectualSites team and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package com.plotsquared.bukkit.schematic; import com.google.gson.JsonArray; diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/StateWrapper.java b/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/StateWrapper.java index ca150861b..baf06631b 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/StateWrapper.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/StateWrapper.java @@ -238,6 +238,7 @@ public class StateWrapper { if (line instanceof CompoundTag compoundTag && compoundTag.getValue().containsKey("")) { //noinspection deprecation - Paper deprecatiom side.setLine(i, compoundTag.getString("")); + continue; } // serializes the line content from JNBT to Gson JSON objects, passes that to adventure and deserializes // into an adventure component. @@ -273,7 +274,6 @@ public class StateWrapper { 'G', 's', 'o', 'n', 'C', 'o', 'm', 'p', 'o', 'n', 'e', 'n', 't', 'S', 'e', 'r', 'i', 'a', 'l', 'i', 'z', 'e', 'r' }; Class gsonComponentSerializerClass = Class.forName(new String(dontObfuscate)); - LOGGER.info(gsonComponentSerializerClass); KYORI_GSON_SERIALIZER = Arrays.stream(gsonComponentSerializerClass.getMethods()) .filter(method -> method.getName().equals("gson")) .findFirst()