Skip to content

Commit 1b638b7

Browse files
Fix NBTAPI changing sign not working
1 parent bb5f391 commit 1b638b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,8 @@ public void setSignText(@NotNull List<ComponentPackage> lines) {
875875
tileSign.setString("Text" + (i + 1), Util.componentsToJson(lines.get(i).getComponents()));
876876
}
877877
}
878-
sign.update(true);
878+
//Due to spigot internal changes, snapshot need to be updated for nbt changes
879+
sign = (Sign) sign.getBlock().getState();
879880
} catch (Exception e) {
880881
plugin.getLogger().log(Level.WARNING, "NBTAPI support is broken, disable and fallback... (You can safely ignore this)", e);
881882
plugin.disableNBTAPI();

0 commit comments

Comments
 (0)