From c23cb9870be6689747d8de81224e38d07e7d1ec1 Mon Sep 17 00:00:00 2001 From: austin Date: Tue, 16 Nov 2021 00:18:33 -0500 Subject: [PATCH] Move ai attach to right entity --- src/main/java/electrosphere/engine/LoadingThread.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/electrosphere/engine/LoadingThread.java b/src/main/java/electrosphere/engine/LoadingThread.java index da3d4d50..95d7351c 100644 --- a/src/main/java/electrosphere/engine/LoadingThread.java +++ b/src/main/java/electrosphere/engine/LoadingThread.java @@ -620,6 +620,8 @@ public class LoadingThread extends Thread { //give evil goblin sword Entity goblinSword = ItemUtils.spawnBasicItem("Katana"); AttachUtils.attachEntityToEntityAtBone(goblin, goblinSword, "Bone.031"); + //attach ai to evil goblin + MindlessAttacker.attachToCreature(goblin); // goblin = CreatureUtils.spawnBasicCreature("Goblin"); // CollisionObjUtils.positionCharacter(goblin, new Vector3f(3, 0, 4)); @@ -632,8 +634,6 @@ public class LoadingThread extends Thread { // goblin = CreatureUtils.spawnBasicCreature("Goblin"); // CollisionObjUtils.positionCharacter(goblin, new Vector3f(3, 0, 3)); // EntityUtils.getScale(goblin).set(0.005f); -// //attach ai to evil goblin -// MindlessAttacker.attachToCreature(goblin); // UnitUtils.spawnTextGoblin(10, 0, 10);