-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Describe the bug
when using cursor to move a banner around in inventory and having a listener for WindowItems and reading items from that packet it visually clears the banner of any patterns this only happens on 1.20.5+
aside from that when doing this and checking components on the item when using cursor to move banner around it shows as BlockEntityDataComponent but when sending a custom WindowItems packet with banners inside from the server it shows as BannerPatternsComponent that are all empty
To Reproduce
- register WindowItems listener
example code
@Override
public void packetReceive(PacketReceiveEvent<WindowItems> e) {
WindowItems packet = e.packet();
short windowId = packet.windowId();
int stateId = packet.stateId();
packet.items().stream()
.filter(Objects::nonNull)
.map(BaseItemStack::getComponents)
.forEach(System.out::println);
}
- move any banner with patterns around in the inventory on the server using cursor
- it should visually lose all patterns
Expected behavior
when moving banners around in inventory patterns should stay intact
Screenshots
If applicable, add screenshots to help explain your problem.
Proxy environment
velocity running with latest protocollize - 2.4.1:1220, luckperms and my custom plugin that registers the listener
Minecraft versions used
server running latest purpur 1.21.1
client 1.20.4 and 1.21.1