Fix item shaking
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
[Connection]
|
[Connection]
|
||||||
LocalAddress = "0.0.0.0:19135"
|
LocalAddress = "0.0.0.0:19132"
|
||||||
RemoteAddress = "127.0.0.1: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 {
|
func (t *DefaultItemTranslator) DowngradeItemStack(input protocol.ItemStack) protocol.ItemStack {
|
||||||
if t.latest == t.mapping {
|
if t.latest == t.mapping || input.NetworkID == 0 {
|
||||||
return input
|
return input
|
||||||
}
|
}
|
||||||
input.ItemType = t.DowngradeItemType(input.ItemType)
|
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 {
|
func (t *DefaultItemTranslator) UpgradeItemStack(input protocol.ItemStack) protocol.ItemStack {
|
||||||
if t.latest == t.mapping {
|
if t.latest == t.mapping || input.NetworkID == 0 {
|
||||||
return input
|
return input
|
||||||
}
|
}
|
||||||
input.ItemType = t.UpgradeItemType(input.ItemType)
|
input.ItemType = t.UpgradeItemType(input.ItemType)
|
||||||
|
|||||||
Reference in New Issue
Block a user