Nameless Trinkets

Nameless Trinkets

6M Downloads

[MC-1.19.2 & mod-1.8.0]Four Leaf Clover doesn't work

lycc193 opened this issue ยท 1 comments

commented

I decompiled the source code and found that the activation condition for the four - leaf clover was written backwards.

    public static void entityKilled(LivingDeathEvent event) {
        Stats config = (Stats)INSTANCE.getConfig();
        if (!config.isEnable) {
            return;
        }
        if (!(event.getEntity() instanceof Player)) {
            return;
        }

This if statement causes all subsequent judgments not to take effect if the target entity is not a player. Judging from the context and the decompilation result of version 1.7.6, this conditional judgment is completely reversed.
Is it possible to fix this issue and re - upload the file?

commented

Fixed v1.8.1 in 1.19.2