Skip to content

Commit 1f8985e

Browse files
[setSignText] Fix ClassCastException
1 parent 6908171 commit 1f8985e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ public void setSignText(@NotNull List<ComponentPackage> lines) {
878878
//Due to spigot internal changes, snapshot need to be updated for nbt changes
879879
//Such thing not happened to paper (we disable snapshot when getting state),
880880
//for performance improvement, we use paperlib to skip snapshot creating again
881-
sign = (Sign) PaperLib.getBlockState(sign.getBlock(), false);
881+
sign = (Sign) PaperLib.getBlockState(sign.getBlock(), false).getState();
882882
} catch (Exception e) {
883883
plugin.getLogger().log(Level.WARNING, "NBTAPI support is broken, disable and fallback... (You can safely ignore this)", e);
884884
plugin.disableNBTAPI();

0 commit comments

Comments
 (0)