-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
fix: Issues related to fireworks and fused explosives #4117
Conversation
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.
Overall looks good, few comments.
...java/org/spongepowered/common/mixin/api/minecraft/world/entity/monster/CreeperMixin_API.java
Outdated
Show resolved
Hide resolved
src/mixins/java/org/spongepowered/common/mixin/core/world/entity/item/PrimedTntMixin.java
Outdated
Show resolved
Hide resolved
This reverts commit 9c791a4.
src/mixins/java/org/spongepowered/common/mixin/core/world/entity/monster/CreeperMixin.java
Outdated
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.
LGTM! Thank you!!
Another thing I noticed was that the FIREWORK_FLIGHT_MODIFIER is Ticks
but we more of treat it as int
which seems problematic.. There is also no direct way to change the lifetime as actual Ticks
which would be helpful, but all of those are unrelated here.
Fixes #4116
IS_PRIMED
for all fused explosivesTICKS_REMAINING
throwing an error for anything other thanPrimedTNT
FUSE_DURATION
always rejectingdetonate
method of Creeper only igniting, not exploding it (other methods explode)FIREWORK_FLIGHT_MODIFIER
(not sure if this is wanted)