-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Feature: Block Opening /cf
Without Hot Chocolate Mixin
#3024
base: beta
Are you sure you want to change the base?
Feature: Block Opening /cf
Without Hot Chocolate Mixin
#3024
Conversation
One or more Detekt Failures were detected:
|
.../java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBlockOpen.kt
Show resolved
Hide resolved
@@ -303,6 +306,9 @@ public static class BitsStorage { | |||
public SimpleTimeMark boosterCookieExpiryTime = null; | |||
} | |||
|
|||
@Expose | |||
public SimpleTimeMark godPotExpiryTime = SimpleTimeMarkFarPast(); |
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.
this doesnt look right
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.
Could you elaborate more please
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.
Have not looked at this in IntelliJ. But this doesn't look like a valid java line. What is the default value of this variable?
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.
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.
Method naming does not follow Java convention. Methods typically start with a lowercase letter, e.g. simpleTimeMarkFarPast().
The method name is not very descriptive. Consider something like getFarPastSimpleTimeMark() to clarify its intent.
If GenericWrapper and getIt() are needed, consider renaming getIt() to something more meaningful.
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.
Also why is this wrapper needed?
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.
This is not a new thing, this has existed since June.
I'm fine with changing it if you really want me to but this is not a new thing. And the wrapper is needed because you can't assign a Kotlin class value to a Java object unless it's got a static definition, which SimpleTimeMark.farPast()
is not. It's the same reason that right below that, we have a wrapper for Duration - they're composed types that simplify to long
, making them easy to use in the storage, but initial values have to be wrapped.
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.
can we use new SimpleTimeMark(0)
instead then? really not a fan of this wrapping, and the function name breaks java conversations. so sad i have not noticed this before
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.
src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt
Outdated
Show resolved
Hide resolved
One or more Detekt Failures were detected:
|
This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes. |
Conflicts have been resolved! 🎉 |
This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes. |
…etect # Conflicts: # src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt
Conflicts have been resolved! 🎉 |
src/main/java/at/hannibal2/skyhanni/events/EffectDurationChangeEvent.kt
Outdated
Show resolved
Hide resolved
One or more Detekt Failures were detected:
|
What
https://discord.com/channels/997079228510117908/1314046959589261372
Adds Hot Chocolate Mixin & God Potion detection to the list of reasons
/cf
/clicking on CF items can be blockedChangelog New Features