Skip to content

Commit 291ddc6

Browse files
committed
Fix instant damage effect from Dragon's Breath (Fluid) having glitching icon
1 parent 7eb4715 commit 291ddc6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
### Create: Dragons Plus 1.5.2
22

33
#### Fix
4-
- Fix item attributes not being registered
4+
- Fix item attributes not being registered
5+
- Fix instant damage effect from Dragon's Breath (Fluid) having glitching icon

src/main/java/plus/dragons/createdragonsplus/common/fluids/dragonBreath/DragondBreathLiquidBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public DragondBreathLiquidBlock(FlowingFluid fluid, Properties properties) {
3636
@Override
3737
protected void entityInside(BlockState state, Level level, BlockPos pos, Entity entity) {
3838
if (entity instanceof LivingEntity livingEntity && livingEntity.isAffectedByPotions() && entity.tickCount % 5 == 0) {
39-
livingEntity.addEffect(new MobEffectInstance(MobEffects.HARM, 1, 1));
39+
livingEntity.addEffect(new MobEffectInstance(MobEffects.HARM, 1, 1, false, false, false));
4040
}
4141
}
4242
}

src/main/java/plus/dragons/createdragonsplus/common/fluids/dragonBreath/DragonsBreathOpenPipeEffect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void apply(Level level, AABB area, FluidStack fluid) {
3434
return;
3535
List<LivingEntity> entities = level.getEntitiesOfClass(LivingEntity.class, area, LivingEntity::isAffectedByPotions);
3636
for (LivingEntity entity : entities) {
37-
entity.addEffect(new MobEffectInstance(MobEffects.HARM, 1, 1));
37+
entity.addEffect(new MobEffectInstance(MobEffects.HARM, 1, 1, false, false, false));
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)