[SPIGOT-6266] PrepareSmithingEvent called multiple times Created: 03/Dec/20  Updated: 27/Dec/20  Resolved: 27/Dec/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Michał Czopek Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 1.16.4, api, bug, spigot
Environment:

Plain Spigot. One plugin, no config changes.


Attachments: File SmithingTableTest-1.jar     PNG File image-2020-12-03-23-28-49-692.png    
Issue Links:
Duplicate
duplicates SPIGOT-2702 PrepareAnvilEvent fires 3 times Resolved
Version: This server is running CraftBukkit version git-Spigot-a19903d-5b74714 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

PrepareSmithingEvent is called multiple times when doing single operation in the GUI.

Can be reproduced with this code:

@EventHandler
public void onPrepare(PrepareSmithingEvent event) {
    Bukkit.getLogger().info("System.currentTimeMillis: " + System.currentTimeMillis());
}

I attached compiled plugin to test this behaviour.



 Comments   
Comment by Michał Czopek [ 04/Dec/20 ]

Applies to PrepareAnvilEvent as well.

Generated at Tue Apr 22 06:38:50 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.