src/mod/gcewing/sg/SGBaseTE.java
// when the entity is teleported, but without this it drops an extra leash item.
when the entity is teleported, but without this it drops an extra leash item.
when the entity is teleported but without this it drops an extra leash item .
protected static void unleashEntity(Entity entity) {
        if (entity instanceof EntityLiving)
            ((EntityLiving)entity).clearLeashed(true, false);
        for (EntityLiving entity2 : entitiesWithinLeashRange(entity))
            if (entity2.getLeashed() && entity2.getLeashedToEntity() == entity)
                entity2.clearLeashed(true, false);
    }
protected static void unleashEntity ( Entity entity ) { if ( entity instanceof EntityLiving ) ( ( EntityLiving ) entity ) . clearLeashed ( true , false ) ; for ( EntityLiving entity2 : entitiesWithinLeashRange ( entity ) ) if ( entity2 . getLeashed ( ) && entity2 . getLeashedToEntity ( ) == entity ) entity2 . clearLeashed ( true , false ) ; }
when the entity is teleported, but without this it drops an extra leash item.
when the entity is teleported but without this it drops an extra leash item .