Fix item shaking
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user