Luohuayu / CatServer

高性能和高兼容性的1.12.2/1.16.5/1.18.2版本Forge+Bukkit+Spigot服务端 (A high performance and high compatibility 1.12.2/1.16.5/1.18.2 version Forge+Bukkit+Spigot server)
https://catmc.org
GNU Lesser General Public License v3.0
1.98k stars 211 forks source link

[1.16.5] Some Bukkit event listeners are triggered twice in a single event #753

Closed Akita041 closed 1 year ago

Akita041 commented 1 year ago

Minecraft version(1.12.2/1.16.5/1.18.2): 1.16.5 Build version(Get from /version command): 1.16.5-ab948f4e Mods: none Plugins: none Describe the bug For example, writing a plugin to listen to BlockPlaceEvent,Such as this:

@EventHandler public void place(BlockPlaceEvent event){ System.out.println(event); }

When a player places a block in the world, this event will be triggered twice,You will receive two output values.At first, I thought it was a problem with the main hand and off hands,But in Spigot-3096a-Mc1.16.5 only one output will be obtained,I think there may be a problem,Please take a look when you have time. If it is confirmed to be a bug, please fix it.

To Reproduce Plugin using BlockPlaceEvent.