You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unsure, I am running a compile of commit b0c4b7fe45024e59505ed132d2df9d61fd5f405d.
Server is Paper 1.20.6-97. Could this issue be down to paper remapping? It does remap plugins on startup now, which this may relate to.
Describe the bug
Supercut of the code
if (packet.getPacketType() == PacketType.Play.Server.BUNDLE) {
for (PacketContainercontainer : packet.getPacket().getPacketBundles().read(0)) {
System.out.println(container.getType());
}
}
This is on a PacketListener with PacketType.Play.Server.BUNDLE and PacketType.Play.Server.SPAWN_ENTITY within the list of whitelisted types (there are more, this is non-exhaustive behaviour).
When spawning an entity I can see the following console log
It is correctly assigning the type for the UPDATE_ATTRIBUTES packet, however it is not assigning the types for the other 3, which means any if (packet_type == PacketType.Play.Server.SPAWN_ENTITY) { check currently does not work.
To Reproduce
Steps to reproduce the behavior:
Implement the code above (can provide a full gist of a class if needby)
Unsure, I am running a compile of commit
b0c4b7fe45024e59505ed132d2df9d61fd5f405d
.Server is Paper 1.20.6-97. Could this issue be down to paper remapping? It does remap plugins on startup now, which this may relate to.
Describe the bug
Supercut of the code
This is on a
PacketListener
withPacketType.Play.Server.BUNDLE
andPacketType.Play.Server.SPAWN_ENTITY
within the list of whitelisted types (there are more, this is non-exhaustive behaviour).When spawning an entity I can see the following console log
It is correctly assigning the type for the
UPDATE_ATTRIBUTES
packet, however it is not assigning the types for the other 3, which means anyif (packet_type == PacketType.Play.Server.SPAWN_ENTITY) {
check currently does not work.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Types to assign properly
Screenshots
Logs posted above
Version Info
https://gist.github.com/AffectedArc07/2aed39fd14a048d0ad97d4f203272a33
Additional context
This code worked fine on 1.20.4 paper with ProtocolLib
5.1.1-SNAPSHOT
, unsure of exact commit, roughly 150 behind current master.Newer versions of paper like to remap plugins on startup and this behaviour cannot be turned off, which makes me wonder if this is responsible.
The text was updated successfully, but these errors were encountered: