Skip to content

Commit

Permalink
Minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkoSammy12 committed Feb 12, 2024
1 parent bf7177d commit 8c99034
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public abstract class TimeCommandMixin {
@ModifyReturnValue(method = "executeAdd", at = @At("RETURN"))
private static int onTimeAdd(int original){
for(AbstractExplosionEvent explosionEvent : ExplosionManager.getInstance().getExplosionEvents()){
if(explosionEvent instanceof DaytimeExplosionEvent){
if(explosionEvent instanceof DaytimeExplosionEvent && explosionEvent.getHealTimer() > 0){
explosionEvent.setHealTimer(24000 - original);
}
}
Expand All @@ -25,7 +25,7 @@ private static int onTimeAdd(int original){
@ModifyReturnValue(method = "executeSet", at = @At("RETURN"))
private static int onTimeSet(int original){
for(AbstractExplosionEvent explosionEvent : ExplosionManager.getInstance().getExplosionEvents()){
if(explosionEvent instanceof DaytimeExplosionEvent){
if(explosionEvent instanceof DaytimeExplosionEvent && explosionEvent.getHealTimer() > 0){
explosionEvent.setHealTimer(24000 - original);
}
}
Expand Down

0 comments on commit 8c99034

Please sign in to comment.