From 018042769d00d04e5c0a12043079773a8dcd024c Mon Sep 17 00:00:00 2001 From: SirYwell Date: Sun, 26 Dec 2021 09:31:03 +0100 Subject: [PATCH] use spigot-compatible palette constructor --- .../impl/fawe/v1_18_R1/PaperweightPlatformAdapter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/worldedit-bukkit/adapters/adapter-1_18/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_18_R1/PaperweightPlatformAdapter.java b/worldedit-bukkit/adapters/adapter-1_18/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_18_R1/PaperweightPlatformAdapter.java index 47b67b009..abb0a1ab8 100644 --- a/worldedit-bukkit/adapters/adapter-1_18/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_18_R1/PaperweightPlatformAdapter.java +++ b/worldedit-bukkit/adapters/adapter-1_18/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_18_R1/PaperweightPlatformAdapter.java @@ -363,15 +363,14 @@ public final class PaperweightPlatformAdapter extends NMSAdapter { } // Create palette with data + @SuppressWarnings("deprecation") // constructor is deprecated on paper, but needed to keep compatibility with spigot final PalettedContainer blockStatePalettedContainer = new PalettedContainer<>( Block.BLOCK_STATE_REGISTRY, PalettedContainer.Strategy.SECTION_STATES, PalettedContainer.Strategy.SECTION_STATES.getConfiguration(Block.BLOCK_STATE_REGISTRY, bitsPerEntry), nmsBits, - palette, - null, - null + palette ); LevelChunkSection levelChunkSection; try {