mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-09-08 13:55:36 +02:00
fix: missing continue and license header
This commit is contained in:
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* PlotSquared, a land and world management plugin for Minecraft.
|
||||||
|
* Copyright (C) IntellectualSites <https://intellectualsites.com>
|
||||||
|
* 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package com.plotsquared.bukkit.schematic;
|
package com.plotsquared.bukkit.schematic;
|
||||||
|
|
||||||
import com.google.gson.JsonArray;
|
import com.google.gson.JsonArray;
|
||||||
|
@@ -238,6 +238,7 @@ public class StateWrapper {
|
|||||||
if (line instanceof CompoundTag compoundTag && compoundTag.getValue().containsKey("")) {
|
if (line instanceof CompoundTag compoundTag && compoundTag.getValue().containsKey("")) {
|
||||||
//noinspection deprecation - Paper deprecatiom
|
//noinspection deprecation - Paper deprecatiom
|
||||||
side.setLine(i, compoundTag.getString(""));
|
side.setLine(i, compoundTag.getString(""));
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
// serializes the line content from JNBT to Gson JSON objects, passes that to adventure and deserializes
|
// serializes the line content from JNBT to Gson JSON objects, passes that to adventure and deserializes
|
||||||
// into an adventure component.
|
// 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'
|
'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));
|
Class<?> gsonComponentSerializerClass = Class.forName(new String(dontObfuscate));
|
||||||
LOGGER.info(gsonComponentSerializerClass);
|
|
||||||
KYORI_GSON_SERIALIZER = Arrays.stream(gsonComponentSerializerClass.getMethods())
|
KYORI_GSON_SERIALIZER = Arrays.stream(gsonComponentSerializerClass.getMethods())
|
||||||
.filter(method -> method.getName().equals("gson"))
|
.filter(method -> method.getName().equals("gson"))
|
||||||
.findFirst()
|
.findFirst()
|
||||||
|
Reference in New Issue
Block a user