尝试修复部分情况下DPS发电机被击杀的问题
This commit is contained in:
parent
7b2d159410
commit
b9c98c106d
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ public class DPSGeneratorEntity extends LivingEntity implements GeoEntity {
|
|||
|
||||
if (entity instanceof DPSGeneratorEntity generatorEntity) {
|
||||
event.setCanceled(true);
|
||||
generatorEntity.setHealth(0.00001F);
|
||||
|
||||
if (sourceEntity instanceof Player player) {
|
||||
SoundTool.playLocalSound(player, ModSounds.TARGET_DOWN.get(), 1, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue