Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 00:22:53 +01:00
Merge remote-tracking branch 'origin/master' into dev
Dieser Commit ist enthalten in:
Commit
62765d03ce
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -21,9 +21,10 @@ import com.viaversion.viabackwards.ViaBackwards;
|
|||||||
import com.viaversion.viaversion.libs.gson.JsonIOException;
|
import com.viaversion.viaversion.libs.gson.JsonIOException;
|
||||||
import com.viaversion.viaversion.libs.gson.JsonObject;
|
import com.viaversion.viaversion.libs.gson.JsonObject;
|
||||||
import com.viaversion.viaversion.libs.gson.JsonSyntaxException;
|
import com.viaversion.viaversion.libs.gson.JsonSyntaxException;
|
||||||
import com.viaversion.viaversion.libs.opennbt.NBTIO;
|
|
||||||
import com.viaversion.viaversion.libs.opennbt.tag.builtin.CompoundTag;
|
import com.viaversion.viaversion.libs.opennbt.tag.builtin.CompoundTag;
|
||||||
import com.viaversion.viaversion.libs.opennbt.tag.builtin.Tag;
|
import com.viaversion.viaversion.libs.opennbt.tag.builtin.Tag;
|
||||||
|
import com.viaversion.viaversion.libs.opennbt.tag.io.NBTIO;
|
||||||
|
import com.viaversion.viaversion.libs.opennbt.tag.io.TagReader;
|
||||||
import com.viaversion.viaversion.util.GsonUtil;
|
import com.viaversion.viaversion.util.GsonUtil;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
@ -35,6 +36,8 @@ import org.checkerframework.checker.nullness.qual.Nullable;
|
|||||||
|
|
||||||
public final class VBMappingDataLoader {
|
public final class VBMappingDataLoader {
|
||||||
|
|
||||||
|
private static final TagReader<CompoundTag> TAG_READER = NBTIO.reader(CompoundTag.class).named();
|
||||||
|
|
||||||
public static @Nullable CompoundTag loadNBT(final String name) {
|
public static @Nullable CompoundTag loadNBT(final String name) {
|
||||||
final InputStream resource = getResource(name);
|
final InputStream resource = getResource(name);
|
||||||
if (resource == null) {
|
if (resource == null) {
|
||||||
@ -42,7 +45,7 @@ public final class VBMappingDataLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try (final InputStream stream = resource) {
|
try (final InputStream stream = resource) {
|
||||||
return NBTIO.readTag(stream);
|
return TAG_READER.read(stream);
|
||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
@ -65,7 +68,7 @@ public final class VBMappingDataLoader {
|
|||||||
|
|
||||||
ViaBackwards.getPlatform().getLogger().info("Loading " + name + " from plugin folder");
|
ViaBackwards.getPlatform().getLogger().info("Loading " + name + " from plugin folder");
|
||||||
try {
|
try {
|
||||||
final CompoundTag fileData = NBTIO.readFile(file, false, false);
|
final CompoundTag fileData = TAG_READER.read(file.toPath(), false);
|
||||||
return mergeTags(packedData, fileData);
|
return mergeTags(packedData, fileData);
|
||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -73,7 +73,7 @@ public abstract class ItemRewriterBase<C extends ClientboundPacketType, S extend
|
|||||||
// Clone all tag entries
|
// Clone all tag entries
|
||||||
ListTag listTag = new ListTag();
|
ListTag listTag = new ListTag();
|
||||||
for (Tag tag : original.getValue()) {
|
for (Tag tag : original.getValue()) {
|
||||||
listTag.add(tag.clone());
|
listTag.add(tag.copy());
|
||||||
}
|
}
|
||||||
|
|
||||||
displayTag.put(backupName, listTag);
|
displayTag.put(backupName, listTag);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -51,7 +51,7 @@ public class LegacyEnchantmentRewriter {
|
|||||||
ListTag enchantments = tag.get(key);
|
ListTag enchantments = tag.get(key);
|
||||||
ListTag remappedEnchantments = new ListTag(CompoundTag.class);
|
ListTag remappedEnchantments = new ListTag(CompoundTag.class);
|
||||||
List<Tag> lore = new ArrayList<>();
|
List<Tag> lore = new ArrayList<>();
|
||||||
for (Tag enchantmentEntry : enchantments.clone()) {
|
for (Tag enchantmentEntry : enchantments.copy()) {
|
||||||
Tag idTag = ((CompoundTag) enchantmentEntry).get("id");
|
Tag idTag = ((CompoundTag) enchantmentEntry).get("id");
|
||||||
if (idTag == null) continue;
|
if (idTag == null) continue;
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ public class LegacyEnchantmentRewriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!storedEnchant && tag.remove(nbtTagName + "|dummyEnchant") != null) {
|
if (!storedEnchant && tag.remove(nbtTagName + "|dummyEnchant") != null) {
|
||||||
for (Tag enchantment : enchantments.clone()) {
|
for (Tag enchantment : enchantments.copy()) {
|
||||||
short id = ((NumberTag) ((CompoundTag) enchantment).get("id")).asShort();
|
short id = ((NumberTag) ((CompoundTag) enchantment).get("id")).asShort();
|
||||||
short level = ((NumberTag) ((CompoundTag) enchantment).get("lvl")).asShort();
|
short level = ((NumberTag) ((CompoundTag) enchantment).get("lvl")).asShort();
|
||||||
if (id == 0 && level == 0) {
|
if (id == 0 && level == 0) {
|
||||||
@ -133,7 +133,7 @@ public class LegacyEnchantmentRewriter {
|
|||||||
CompoundTag display = tag.get("display");
|
CompoundTag display = tag.get("display");
|
||||||
// A few null checks just to be safe, though they shouldn't actually be
|
// A few null checks just to be safe, though they shouldn't actually be
|
||||||
ListTag lore = display != null ? display.get("Lore") : null;
|
ListTag lore = display != null ? display.get("Lore") : null;
|
||||||
for (Tag enchantment : remappedEnchantments.clone()) {
|
for (Tag enchantment : remappedEnchantments.copy()) {
|
||||||
enchantments.add(enchantment);
|
enchantments.add(enchantment);
|
||||||
if (lore != null && lore.size() != 0) {
|
if (lore != null && lore.size() != 0) {
|
||||||
lore.remove(lore.get(0));
|
lore.remove(lore.get(0));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -585,7 +585,7 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit
|
|||||||
if (blockTag == null) return;
|
if (blockTag == null) return;
|
||||||
|
|
||||||
ListTag newCanPlaceOn = new ListTag(StringTag.class);
|
ListTag newCanPlaceOn = new ListTag(StringTag.class);
|
||||||
tag.put(extraNbtTag + "|" + tagName, blockTag.clone());
|
tag.put(extraNbtTag + "|" + tagName, blockTag.copy());
|
||||||
for (Tag oldTag : blockTag) {
|
for (Tag oldTag : blockTag) {
|
||||||
Object value = oldTag.getValue();
|
Object value = oldTag.getValue();
|
||||||
String[] newValues = value instanceof String ?
|
String[] newValues = value instanceof String ?
|
||||||
@ -611,7 +611,7 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit
|
|||||||
ListTag newEnchantments = new ListTag(CompoundTag.class);
|
ListTag newEnchantments = new ListTag(CompoundTag.class);
|
||||||
List<Tag> lore = new ArrayList<>();
|
List<Tag> lore = new ArrayList<>();
|
||||||
boolean hasValidEnchants = false;
|
boolean hasValidEnchants = false;
|
||||||
for (Tag enchantmentEntryTag : enchantments.clone()) {
|
for (Tag enchantmentEntryTag : enchantments.copy()) {
|
||||||
CompoundTag enchantmentEntry = (CompoundTag) enchantmentEntryTag;
|
CompoundTag enchantmentEntry = (CompoundTag) enchantmentEntryTag;
|
||||||
Tag idTag = enchantmentEntry.get("id");
|
Tag idTag = enchantmentEntry.get("id");
|
||||||
if (!(idTag instanceof StringTag)) {
|
if (!(idTag instanceof StringTag)) {
|
||||||
@ -708,7 +708,7 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit
|
|||||||
} else if (loreTag.size() != 0) {
|
} else if (loreTag.size() != 0) {
|
||||||
ListTag oldLore = new ListTag(StringTag.class);
|
ListTag oldLore = new ListTag(StringTag.class);
|
||||||
for (Tag value : loreTag) {
|
for (Tag value : loreTag) {
|
||||||
oldLore.add(value.clone());
|
oldLore.add(value.copy());
|
||||||
}
|
}
|
||||||
tag.put(extraNbtTag + "|OldLore", oldLore);
|
tag.put(extraNbtTag + "|OldLore", oldLore);
|
||||||
|
|
||||||
@ -835,7 +835,7 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit
|
|||||||
if (!(tag.get(tagName) instanceof ListTag)) return;
|
if (!(tag.get(tagName) instanceof ListTag)) return;
|
||||||
ListTag blockTag = tag.remove(extraNbtTag + "|" + tagName);
|
ListTag blockTag = tag.remove(extraNbtTag + "|" + tagName);
|
||||||
if (blockTag != null) {
|
if (blockTag != null) {
|
||||||
tag.put(tagName, blockTag.clone());
|
tag.put(tagName, blockTag.copy());
|
||||||
} else if ((blockTag = tag.get(tagName)) != null) {
|
} else if ((blockTag = tag.get(tagName)) != null) {
|
||||||
ListTag newCanPlaceOn = new ListTag(StringTag.class);
|
ListTag newCanPlaceOn = new ListTag(StringTag.class);
|
||||||
for (Tag oldTag : blockTag) {
|
for (Tag oldTag : blockTag) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
|
||||||
* Copyright (C) 2016-2023 ViaVersion and contributors
|
* Copyright (C) 2016-2024 ViaVersion and contributors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden Mehr anzeigen
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren