Remove unnecessary AsyncCatcher callers
The AsyncCatcher will check threads and cost extra performance, and since it only works for bad plugins, just removed unnecessary callers that won't save data to disk to save these performance.
This commit is contained in:
@@ -750,7 +750,7 @@ public abstract class EntityLiving extends Entity {
|
||||
}
|
||||
|
||||
public boolean addEffect(MobEffect mobeffect, EntityPotionEffectEvent.Cause cause) {
|
||||
org.spigotmc.AsyncCatcher.catchOp( "effect add"); // Spigot
|
||||
//org.spigotmc.AsyncCatcher.catchOp( "effect add"); // Spigot // Akarin
|
||||
if (isTickingEffects) {
|
||||
effectsToProcess.add(new ProcessableEffect(mobeffect, cause));
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user