- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 295
 
Description
What feature do you want to see added?
WorldEdit implementation of the "onPlayerInteract()" that check if your hand's tool is a worldedit stick or not isn't optimized well.
I already reported it to them and they said "remove worldedit if you want to save 0.2% of your tick".
It's "only" 0.2-0.3% of the tick, but for only one plugin, and with 50-60 plugins like that it's some % that can be saved to allows more players on the server.
By changing this method it would allow the plugin to run on the background without taking any % for "nothing".
Here is the spark with the latest dev build on 1.21.4 : https://spark.lucko.me/oFOQ3RATqs
- I just used a vanilla pickaxe and added a lore to it using essentials (the lore check seems heavier than just vanilla item with only enchants)
 
- I mined in the nether with haste 2
- On prod with tons of players it's still at 0.2-0.3% of the tick for the same event
Are there any alternatives?
Tested worldedit and FAWE, they use the same event
Make a PR into worldedit plugin, but :
- They maybe won't accept the PR
 
Could also just fork worldedit, but every new version I'll need to fork it again
Anything else?
No response