src/main/java/dev/rlnt/energymeter/meter/MeterTile.java
private void updateStatus(STATUS newStatus) {
        STATUS oldStatus = status;
        status = newStatus;
        averageRate = 0;
        averageCount = 0;
        if (oldStatus != newStatus) {
            int flags = SyncFlags.STATUS;
            if (newStatus != STATUS.TRANSFERRING) {
                transferRate = 0;
                flags = flags | SyncFlags.TRANSFER_RATE;
            }
            syncData(flags);
        }
    }
/**
     * Updates the status to the specified value.
     * If it was different from the previous value, it will trigger a client sync.
     *
     * @param newStatus the new setting to set
     */
Updates the status to the specified value.
If it was different from the previous value, it will trigger a client sync.

@param newStatus the new setting to set
Updates the status to the specified value . If it was different from the previous value it will trigger a client sync . @param newStatus the new setting to set
private void updateStatus(STATUS newStatus) {
        STATUS oldStatus = status;
        status = newStatus;
        averageRate = 0;
        averageCount = 0;
        if (oldStatus != newStatus) {
            int flags = SyncFlags.STATUS;
            if (newStatus != STATUS.TRANSFERRING) {
                transferRate = 0;
                flags = flags | SyncFlags.TRANSFER_RATE;
            }
            syncData(flags);
        }
    }
private void updateStatus ( STATUS newStatus ) { STATUS oldStatus = status ; status = newStatus ; averageRate = 0 ; averageCount = 0 ; if ( oldStatus != newStatus ) { int flags = SyncFlags . STATUS ; if ( newStatus != STATUS . TRANSFERRING ) { transferRate = 0 ; flags = flags | SyncFlags . TRANSFER_RATE ; } syncData ( flags ) ; } }
Updates the status to the specified value.
Updates the status to the specified value .