more thread safe carpet globs
This commit is contained in:
1 parent
5d00709b1f
commit
f18cc1c836
19 files changed
+48
-52
No files matched your search
@@ -11,9 +11,9 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
@Mixin(ChunkRegion.class)
|
||||
public class ChunkRegion_scarpetPlopMixin
|
||||
{
|
||||
@Inject(method = "markBlockForPostProcessing", at = @At("HEAD"))
|
||||
@Inject(method = "markBlockForPostProcessing", at = @At("HEAD"), cancellable = true)
|
||||
private void markOrNot(BlockPos blockPos, CallbackInfo ci)
|
||||
{
|
||||
if (CarpetSettings.skipGenerationChecks) ci.cancel();
|
||||
if (CarpetSettings.skipGenerationChecks.get()) ci.cancel();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user