Bug - Fixed Spoilers for Neverending Party Quest

fronobulax

Developer
Staff member
Java:
        else if ( partyQuest.equals( "trash" ) )
        {
            Matcher m = RequestEditorKit.TRASH_PATTERN.matcher( buffer );
            if ( m.find() )
            {
                String progress = " (~" + Preferences.getString( "_questPartyFairProgress" ) + " pieces of trash remaining)";
                buffer.insert( m.end(), progress );
                return;
            }
        }
        else if ( partyQuest.equals( "trash" ) )
        {
            Matcher m = RequestEditorKit.MEAT_PATTERN.matcher( buffer );
            if ( m.find() )
            {
                String progress = " (" + Preferences.getString( "_questPartyFairProgress" ) + " Meat remaining)";
                buffer.insert( m.end(), progress );
                return;
            }
        }

Code fragment from RequestEditorKit.java

It looks to me like there was a copy paste error and the second check should be something like partyQuest.equals( "meat" ) instead of partyQuest.equals( "trash" ).

I made a new thread since this was a comment made elsewhere where it was hard to track.

I marked it as waiting for info since I have not confirmed that this is a bug. At this moment it is just suspicious code.
 

fredg1

Member
This is indeed an error, that should be "dj" instead
 

Attachments

  • RequestEditorKit.java.patch
    494 bytes · Views: 3

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
Java:
        else if ( partyQuest.equals( "trash" ) )
        {
            Matcher m = RequestEditorKit.TRASH_PATTERN.matcher( buffer );
            if ( m.find() )
            {
                String progress = " (~" + Preferences.getString( "_questPartyFairProgress" ) + " pieces of trash remaining)";
                buffer.insert( m.end(), progress );
                return;
            }
        }
        else if ( partyQuest.equals( "trash" ) )
        {
            Matcher m = RequestEditorKit.MEAT_PATTERN.matcher( buffer );
            if ( m.find() )
            {
                String progress = " (" + Preferences.getString( "_questPartyFairProgress" ) + " Meat remaining)";
                buffer.insert( m.end(), progress );
                return;
            }
        }

Code fragment from RequestEditorKit.java

It looks to me like there was a copy paste error and the second check should be something like partyQuest.equals( "meat" ) instead of partyQuest.equals( "trash" ).

I made a new thread since this was a comment made elsewhere where it was hard to track.

I marked it as waiting for info since I have not confirmed that this is a bug. At this moment it is just suspicious code.
Oh no! I found this the other day but forgot to submit my patch
 
Top