DenizenScript / Denizen

NPC and general Spigot scripting, using the Denizen Scripting Language!
https://denizenscript.com/
MIT License
216 stars 106 forks source link

Cleanup simple packet handlers #2529

Closed tal5 closed 1 year ago

tal5 commented 1 year ago

Actionbar event packet handlers

Block light packet handlers

Fake players packet handlers

Hide particles packet handlers

mcmonkey4eva commented 1 year ago

Note: is there a reason for the id != -1 check? some internal Denizen thing? I think that probably sources from the old version of the packet being an add/remove/modify multi-packet where it's -1 when it's not actually an add

tal5 commented 1 year ago

Note: is there a reason for the id != -1 check? some internal Denizen thing? I think that probably sources from the old version of the packet being an add/remove/modify multi-packet where it's -1 when it's not actually an add

I see, removed it then - technically it'd be covered by getEntity returning null either way