Closed Toshimichi0915 closed 2 years ago
this doesn't seem like an anarchyexploitfixes problem
at me.moomoo.anarchyexploitfixes.prevention.Bedrock.onChunkLoadEvent(Bedrock.java:31) ~[?:?]
It seems that c.getBlock(x, y, z).setType(Material.BEDROCK);
is causing infinite chunk loading loop
According to Javadoc x and z has to be 0-16, not world coordinates. That's probably the cause of this error
Also isn't FillInBedrockRoof completely broken?
y has to be y127 or smth
There hasn't really been a problem on 1.12.
But I have experienced a problem and according to javadoc the code has to be wrong, right?
I found why this code caused StackOverFlow.
Some parts of the map I downloaded were entirely void, and thus old Bedrock.java filled the entire floor of the loaded chunks with bedrock. And because your code does not prevent physics when placing a bedrock, block update occurs in neighbour chunks, which causes infinite loops.
Well yeah this plugin is meant for anarchy servers where the ground is all bedrock, so incase bedrock is broken with an exploit it will be replaced.
I understand that. But it's better not to affect neighbor blocks for performance/other reasons. Also my code is a lot cleaner.
Plugins: Dynmap, ProtocolLib, AnarchyExploitFixes Additional Context: I used this map which can be downloaded from this website