mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
fix bug
This commit is contained in:
parent
191e7a4684
commit
a7e22b7f23
@ -179,6 +179,9 @@
|
|||||||
var host = null;
|
var host = null;
|
||||||
ModAPI.server.getRef().$worldServers.data.forEach((world) => {
|
ModAPI.server.getRef().$worldServers.data.forEach((world) => {
|
||||||
host ||= world.$playerEntities.$array1.data.find((player) => {
|
host ||= world.$playerEntities.$array1.data.find((player) => {
|
||||||
|
if (!player) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var nameKey = ModAPI.util.getNearestProperty(
|
var nameKey = ModAPI.util.getNearestProperty(
|
||||||
player.$gameProfile,
|
player.$gameProfile,
|
||||||
"$name"
|
"$name"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user