Comments (6)
I think USE_ITEM causes this. It's not sending any cursor position
http://wiki.vg/Protocol#Player_Block_Placement
https://github.com/MylesIsCool/ViaVersion/blob/master/src/main/java/us/myles/ViaVersion/transformers/IncomingTransformer.java#L206-L219
from viaversion.
It's really strange, because the bow is actually fired. You can damage other entities.
However, from the wiki.vg about the slot item: "A value of -1 signifies that the slot is empty, and no further data follows." So this would indicate that the server would think that the packet is finished,while it isn't.
from viaversion.
Same problem with buckets & potions
from viaversion.
I Investigated the arrows further, and it seems there is sent a "Spawn Object" packet with velocity (0,0,0). Afterwards there is never sent any "Entity Velocity" packet for that arrow.
This results in the client drawing an arrow which has been shot, but as soon as it receives the "Spawn Object" packet from the server it will stop the arrow mid-air.
from viaversion.
It turns out when you fire a bow in 1.8, it will send this to the server: (ProtocolLib)
[17:15:08 INFO]: [ProtocolLib] Received PacketPlayInBlockDig[7, legacy: 14] from HugoDaBosss:
{ a = { a = 0, c = 0, d = 0 }, b = { g = 0, h = 1, i = -1, j = "down", k = { e = "y", f = "VERTICAL", name = "Y", ordinal = 1 }, l = { c = -1, d = "Towards negative", name = "NEGATIVE", ordinal = 1 }, m = { a = 0, c = -1, d = 0 }, name = "DOWN", ordinal = 0 }, c = { name = "RELEASE_USE_ITEM", ordinal = 5 } }
And it answers with this:
[17:15:08 INFO]: [ProtocolLib] Sent PacketPlayOutSpawnEntity[14, legacy: 23] to HugoDaBosss:
{ a = 509, b = 4353, c = 2272, d = -5426, e = 21589, f = 10548, g = -271, h = 18, i = 64, j = 60, k = 79 }
So what I'm thinking is that when firing a bow, we should use the Block Dig packet, not the Block Placement. Using this will result in an SpawnEntity packet with velocity.
from viaversion.
This is fixed now, don't know how.
Probably a combination of things:
0db43e6
153a68b
from viaversion.
Related Issues (20)
- cant connect with 1.8.9 HOT 2
- Armorstand rotation updates don't pass through in 1.8->1.9 HOT 1
- Cannot connect to 1.8.8 server from 1.12 client HOT 4
- Client fails to decode level_chunk_with_light packet on 1.20.5 HOT 1
- NoClassDefFound Exception HOT 4
- CommandWriter fails to convert on Fabric 1.20.4 server to 1.20.5 client HOT 8
- ViaVersion Raised Errors When Using With Geyser and Failed the Connection HOT 2
- Placing brick stairs is not possible HOT 1
- Unable to grab viaversion client version HOT 8
- Paper 1.20.5 Bug HOT 2
- [packetevents] Unable to grab ViaVersion client version for player! HOT 2
- getting console spam by viaversion HOT 2
- Players unable to login HOT 1
- Players are unable to login HOT 2
- [1.8.8] Failed to send death message HOT 3
- Don't connection for server 1.20.1 version HOT 1
- 1.20 server can't connect on 1.20.6 HOT 16
- shulker tooltip HOT 2
- Entity Sound Pakage Error HOT 1
- 1.20.5 to 1.20.4 server connection error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viaversion.