get entity names or sizes by eids or instances

This commit is contained in:
GameHerobrine 2022-09-25 00:49:56 +03:00
parent 53928f4e88
commit 69d4e52d44
12 changed files with 35 additions and 12 deletions

View file

@ -32,7 +32,6 @@ class PocketMinecraftServer{
console("[INFO] Starting Minecraft PE server on " . ($this->serverip === "0.0.0.0" ? "*" : $this->serverip) . ":" . $this->port);
EntityRegistry::registerEntities();
define("BOOTUP_RANDOM", Utils::getRandomBytes(16));
$this->serverID = $this->serverID === false ? Utils::readLong(substr(Utils::getUniqueID(true, $this->serverip . $this->port), 8)) : $this->serverID;
$this->seed = $this->seed === false ? Utils::readInt(Utils::getRandomBytes(4, false)) : $this->seed;