src/main/java/com/infinityraider/lantern/entity/EntityLantern.java
/**
     * Overridden to drop the lantern too
     */
Overridden to drop the lantern too
Overridden to drop the lantern too
@Override
    public boolean attackEntityFrom(DamageSource source, float amount) {
        if (this.isInvulnerableTo(source)) {
            return false;
        } else if (!this.getEntityWorld().isRemote && this.isAlive()) {
            boolean flag = source.getTrueSource() instanceof PlayerEntity && !((PlayerEntity) source.getTrueSource()).isCreative();
            if (flag) {
                this.dropItems();
            }
            this.setDead();
            return true;
        } else {
            return true;
        }
    }
@ Override public boolean attackEntityFrom ( DamageSource source , float amount ) { if ( this . isInvulnerableTo ( source ) ) { return false ; } else if ( ! this . getEntityWorld ( ) . isRemote && this . isAlive ( ) ) { boolean flag = source . getTrueSource ( ) instanceof PlayerEntity && ! ( ( PlayerEntity ) source . getTrueSource ( ) ) . isCreative ( ) ; if ( flag ) { this . dropItems ( ) ; } this . setDead ( ) ; return true ; } else { return true ; } }
Overridden to drop the lantern too
Overridden to drop the lantern too