Browse Source

fix var on living_spawn

var entity was set instead of living_entity
Marvin Löschenkohl 2 years ago
parent
commit
a364eda754
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/me/hammerle/kp/snuviscript/ScriptEvents.java

+ 1 - 1
src/me/hammerle/kp/snuviscript/ScriptEvents.java

@@ -599,7 +599,7 @@ public class ScriptEvents {
     public static void onCreatureSpawn(CreatureSpawnEvent e) {
         String cause = e.getSpawnReason().toString();
         handleEvent(e, "living_spawn", (sc) -> {
-            setEntity(sc, e.getEntity());
+            setLiving(sc, e.getEntity());
             sc.setVar("location", e.getLocation());
             sc.setVar("cause", cause);
         });