feat: PacketPool

This commit is contained in:
Sunch 2025-04-12 20:33:03 +08:00
parent 2712adc29f
commit c15eeefaa4
2 changed files with 118 additions and 0 deletions

View file

@ -67,6 +67,7 @@ class PocketMinecraftServer{
$this->saveEnabled = true;
$this->tickMeasure = array_fill(0, 40, 0);
$this->setType("normal");
PacketPool::init();
$this->interface = new MinecraftInterface("255.255.255.255", $this->port, $this->serverip);
$this->stop = false;
$this->ticks = 0;