Disable suffocation optimization for withers#1411
Conversation
|
Can you perhaps add an option for this instead of forcing it? Some servers may not want this feature. |
granny
left a comment
There was a problem hiding this comment.
This needs to either be in it's own patch or PR'd to Pufferfish. Inline your imports as well
I inlined the imports for now. If you could propose the name of that additional switch, I can make a PR with that |
Maybe something like |
|
looks like the PR you made for pufferfish, pufferfish-gg/Pufferfish#80, is almost ready to be merged into pufferfish. I'll go ahead and close this PR in favor of that one. With the assumption that it will take a while to merge, i've gone ahead and pulled it downstream into it's own patch. |
The
enableSuffocationOptimizationfrom pufferfish usually does a great job reducing entity lag on huge servers.It reduces the rate of checking for suffocation 10 times (which is collision box calculation and getBlock)
However, it also breaks suffocation based wither cages.
I feel like purpur goes mostly against tnt duping, so wither cages seem like the vanilla way to go around block farms.
This simple change would fix suffocation based wither cages on purpur with the optimization enabled, while still removing most of the lag from the suffocation check.
Given that there are usually only a few withers and thousands of other entities on the server, this option should be the best of both worlds on most of the servers.
Also from a practical standpoint, wither cages are the only useful contraptions that are broken by this patch.