-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-87 Finish sending logic #91
Conversation
* Update lite commands version and all commands. Fix issues * Update src/main/java/com/eternalcode/parcellockers/parcel/command/ParcelCommand.java --------- Co-authored-by: Jakubk15 <[email protected]>
# Conflicts: # build.gradle.kts
…Add Optional GSON serializer.
…Add Optional GSON serializer.
… highlighted in the commands
GsonItemSerializer requires work to properly serialize data in database |
|
# Conflicts: # build.gradle.kts
...main/java/com/eternalcode/parcellockers/gui/implementation/locker/ParcelSendingGUIState.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/gui/implementation/locker/ReceiverSelectionGui.java
Outdated
Show resolved
Hide resolved
…/locker/ParcelSendingGUIState.java
…/locker/ReceiverSelectionGui.java
src/main/java/com/eternalcode/parcellockers/util/legacy/LegacyColorProcessor.java
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/util/legacy/Legacy.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/util/RandomUtil.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/user/UserRepository.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/command/handler/PermissionMessage.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/configuration/ConfigurationManager.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/configuration/implementation/ConfigItem.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/conversation/ParcelLockerPlacePrompt.java
Show resolved
Hide resolved
...in/java/com/eternalcode/parcellockers/gui/implementation/locker/DestinationSelectionGUI.java
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/configuration/implementation/ConfigItem.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/command/handler/InvalidUsageImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/gui/implementation/remote/ParcelListGUI.java
Outdated
Show resolved
Hide resolved
return false; | ||
} | ||
|
||
return new HashSet<>(firstMeta.getLore()).containsAll(secondMeta.getLore()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to just use the compareTo method at this point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
equals
method is more intuitive and directly checks for equality.
compareTo
is generally used for ordering and might be less clear in this context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. The current way you compare the name and lore of items creates a new hashset each time, which can be inefficient. The compareTo method compares the items directly (with enchants etc) which is a better solution. Let the rest of the members comment on this.
src/main/java/com/eternalcode/parcellockers/parcel/command/argument/ParcelLockerArgument.java
Outdated
Show resolved
Hide resolved
src/main/java/com/eternalcode/parcellockers/gui/implementation/locker/ParcelSendingGUI.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chyba nic nie wpadło mi w oczy, ale przy duży ten PR
src/main/java/com/eternalcode/parcellockers/gui/implementation/locker/ParcelItemStorageGUI.java
Outdated
Show resolved
Hide resolved
…h-sending-logic # Conflicts: # src/main/java/com/eternalcode/parcellockers/gui/implementation/locker/ParcelSendingGUI.java
Resolves #87