From 6f8d6e922dfcc9301ad8b2a432f6d91145919df8 Mon Sep 17 00:00:00 2001 From: AkmalFairuz Date: Sat, 29 Mar 2025 07:42:24 +0700 Subject: [PATCH] Fix item shaking --- config.toml | 4 ++-- legacyver/item_translator.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index d3e8573..4c644df 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ [Connection] - LocalAddress = "0.0.0.0:19135" - RemoteAddress = "127.0.0.1:19132" + LocalAddress = "0.0.0.0:19132" + RemoteAddress = "play.venitymc.com:19132" diff --git a/legacyver/item_translator.go b/legacyver/item_translator.go index 813c22e..6576628 100644 --- a/legacyver/item_translator.go +++ b/legacyver/item_translator.go @@ -103,7 +103,7 @@ func (t *DefaultItemTranslator) DowngradeItemType(input protocol.ItemType) proto } func (t *DefaultItemTranslator) DowngradeItemStack(input protocol.ItemStack) protocol.ItemStack { - if t.latest == t.mapping { + if t.latest == t.mapping || input.NetworkID == 0 { return input } input.ItemType = t.DowngradeItemType(input.ItemType) @@ -221,7 +221,7 @@ func (t *DefaultItemTranslator) UpgradeItemType(input protocol.ItemType) protoco } func (t *DefaultItemTranslator) UpgradeItemStack(input protocol.ItemStack) protocol.ItemStack { - if t.latest == t.mapping { + if t.latest == t.mapping || input.NetworkID == 0 { return input } input.ItemType = t.UpgradeItemType(input.ItemType)