aadnk / ProtocolLib

Provides read and write access to the Minecraft protocol with Bukkit.
GNU General Public License v2.0
288 stars 92 forks source link

Problem with making entity's visible again 1.15.2 #182

Open RoboticsMilan opened 3 years ago

RoboticsMilan commented 3 years ago

Make sure you're doing the following

Describe the question I want to make entity's invisible for some players but when i try to make them visible again i receive this error:

.... [19:55:36 WARN]: [ProtocolLib] [PacketFilterManager] [Core] Unsupported server packet in current Minecraft version: UPDATE_ENTITY_NBT[PLAY, SERVER, 253, classNames: [net.minecraft.server.v1_15_R1.PacketPlayOutUpdateEntityNBT] (unregistered)] .... [19:55:36 WARN]: [ProtocolLib] [PacketFilterManager] [Core] Unsupported server packet in current Minecraft version: UPDATE_ENTITY_NBT[PLAY, SERVER, 253, classNames: [net.minecraft.server.v1_15_R1.PacketPlayOutUpdateEntityNBT] (unregistered)]

API method(s) used I used the EntityHider class

Expected behavior The Entity's will become visible again

Code https://gist.github.com/dmulloy2/5526f5bf906c064c255e <- Entity Hider Class i used

                            EntityHider entityHider = new EntityHider(this, EntityHider.Policy.BLACKLIST);
                            for (Husk h1 : husks) {
                                if (!h1.equals(riders.get(p))) {
                                    entityHider.toggleEntity(p, h1);
                                }
                            }

Additional context I can make the husks invisible but not visible again