.
This commit is contained in:
@@ -24,11 +24,6 @@ public class EntityUtils implements Listener {
|
||||
return lastSpawnedEntity;
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void spawn(EntitySpawnEvent e) {
|
||||
lastSpawnedEntity = e.getEntity();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 UUID 获取生物
|
||||
*
|
||||
@@ -118,4 +113,9 @@ public class EntityUtils implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void spawn(EntitySpawnEvent e) {
|
||||
lastSpawnedEntity = e.getEntity();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user