fabric/src/main/java/ninjaphenix/fatxporbs/mixins/ExperienceOrbEntityMixin.java
/**
     * @author NinjaPhenix
     * @reason Custom merging logic.
     */
@author NinjaPhenix
@reason Custom merging logic.
@author NinjaPhenix @reason Custom merging logic .
@Overwrite
    private void merge(ExperienceOrbEntity other) {
        if (!other.isRemoved()) {
            int ownAmount = amount;
            int otherAmount = other.getExperienceAmount();
            amount += otherAmount;
            if (amount < ownAmount && otherAmount > 0) {
                amount = Integer.MAX_VALUE;
            } else if (amount > ownAmount && otherAmount < 0) {
                amount = Integer.MIN_VALUE;
            }
            orbAge = Math.min(orbAge, ((ExperienceAgeAccessor) other).getAge());
            other.discard();
        }
    }
@ Overwrite private void merge ( ExperienceOrbEntity other ) { if ( ! other . isRemoved ( ) ) { int ownAmount = amount ; int otherAmount = other . getExperienceAmount ( ) ; amount += otherAmount ; if ( amount < ownAmount && otherAmount > 0 ) { amount = Integer . MAX_VALUE ; } else if ( amount > ownAmount && otherAmount < 0 ) { amount = Integer . MIN_VALUE ; } orbAge = Math . min ( orbAge , ( ( ExperienceAgeAccessor ) other ) . getAge ( ) ) ; other . discard ( ) ; } }
@author NinjaPhenix
 @reason Custom merging logic.
@author NinjaPhenix @reason Custom merging logic .