[BUG] Mohist - massive lags with BlockBreakEvent
Krosta8 opened this issue ยท 1 comments
Describe the bug
Player was fast digging with Diamond Pickaxe (Efficiency 5) and server was lagging.
Tried in The Nether and overworld (with Diamond Shovel). Same results.
It was outside of the region.
Problem is with this: RedProtect::Event: b.n.f.R.B.l.GlobalListener (BlockBreakEvent)
I tried it with and without CoreProtect plugin. Same results.
Tried it in region and outside of the region. In region without any problem.
To Reproduce
Steps to reproduce the behavior:
- Go in The Nether
- Start digging with Diamond Pickaxe (with Efficiency 5) outside of the region.
- After a few second the server will got in to a lag.
Screenshots and LOGs
https://timings.aikar.co/?id=a954db4519e4441fa1dfc1ef9a692eef#timings RedProtect b326
https://timings.aikar.co/?id=3176bbd160064bef88ad54a575c8805c RedProtect b325
Server and plugins versions (please complete the following information):
- Server: Mohist 1.12.2 (build 535)
- Plugin Version: RedProtect-7.6.7-b326-Universal.jar
- Java Version: Java 1.8
After more investigation, it was caused by:
# Deny player to build/break blocks near x block of a region.
deny-build-near=45
I set this value to 45 for possible "grief" via Nuclear Reactor, which is effect in 45 radius.
When I lowered this value to 10, everything works fine.
Sorry for this issue. Just didn't know, that this number should do this massive lags :D