preprocessor icon indicating copy to clipboard operation
preprocessor copied to clipboard

[Bug?] This may be my doing... But I came across an issue with preprocessor.

Open fooeyround opened this issue 1 year ago • 3 comments

here is the stacktrace. I don't really understand it at all xD.


    ///*


    //#if MC < 11700

    @ModifyExpressionValue(
            method = "checkEntityChunkPos",
            at = @At(
                    value = "INVOKE",
                    target = "net/minecraft/entity/Entity.teleportRequested()Z"
            )
    )
    private boolean carbon$updateTeleportRequested(boolean original, @Local(argsOnly = true) Entity entity) {
        return original || (CarbonSettings.forceLoadEnderPearls && (entity instanceof EnderPearlEntity));
    }




    //#endif

   //*/

the code that breaks ONLY if the // is before the block comments. The preprocessed code outputs correctly in newer versions.

I suspect it has to do with remapping classes or something.

Sorry if this is my fault.... I know this is more of a support thing as I don't know the issue.

Thanks!

fooeyround avatar Oct 08 '23 20:10 fooeyround

If you need any more info I can send it of course.

fooeyround avatar Oct 08 '23 20:10 fooeyround

(I meant to say that when it is block commented it works.

fooeyround avatar Oct 08 '23 20:10 fooeyround

could it be the . in this target = "net/minecraft/entity/Entity.teleportRequested()Z"?

fooeyround avatar Oct 08 '23 20:10 fooeyround