diff options
author | syeyoung <cyong06@naver.com> | 2021-02-14 19:31:46 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-02-14 19:31:46 +0900 |
commit | befa8982a0a8d929e65a23b66040671a45181ef4 (patch) | |
tree | 9c32ac7e538d9ec0c970b2bd128c6c2d953e07c6 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java | |
parent | 3bbe67ecd993bac9e32e7f303ce84b2fa5c7cda4 (diff) | |
download | Skyblock-Dungeons-Guide-befa8982a0a8d929e65a23b66040671a45181ef4.tar.gz Skyblock-Dungeons-Guide-befa8982a0a8d929e65a23b66040671a45181ef4.tar.bz2 Skyblock-Dungeons-Guide-befa8982a0a8d929e65a23b66040671a45181ef4.zip |
new thins
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java index 7d7c0488..b11cce84 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java @@ -2,13 +2,11 @@ package kr.syeyoung.dungeonsguide.dungeon.actions; import com.google.common.base.Predicate; import com.google.common.base.Predicates; -import kr.syeyoung.dungeonsguide.dungeon.EntitySpawnManager; +import kr.syeyoung.dungeonsguide.dungeon.DungeonActionManager; import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPoint; import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoom; -import kr.syeyoung.dungeonsguide.e; import kr.syeyoung.dungeonsguide.utils.RenderUtils; import lombok.Data; -import lombok.EqualsAndHashCode; import net.minecraft.entity.Entity; import net.minecraft.util.BlockPos; import net.minecraft.util.Vec3; @@ -44,7 +42,7 @@ public class ActionKill extends AbstractAction { public void onLivingDeath(DungeonRoom dungeonRoom, LivingDeathEvent event) { if (killed) return; - Vec3 spawnLoc = EntitySpawnManager.getSpawnLocation().get(event.entity.getEntityId()); + Vec3 spawnLoc = DungeonActionManager.getSpawnLocation().get(event.entity.getEntityId()); if (spawnLoc == null) return; if (target.getBlockPos(dungeonRoom).distanceSq(spawnLoc.xCoord, spawnLoc.yCoord, spawnLoc.zCoord) > radius * radius) return; if (!predicate.apply(event.entity)) return; |