From b6934024da90a4528ba19edf67ce2f086f17a938 Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Tue, 21 Feb 2023 15:14:26 +0300 Subject: [PATCH] some fixes --- src/API/BlockAPI.php | 1 + src/Player.php | 4 ++-- src/constants/BlockIDs.php | 1 + src/material/block/solid/SandBlock.php | 9 +++++++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 9569d988..02f1964a 100755 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -24,6 +24,7 @@ class BlockAPI{ [SANDSTONE, 1], [SANDSTONE, 2], [SAND, 0], + [SAND, 1], [GRAVEL, 0], [TRUNK, 0], [TRUNK, 1], diff --git a/src/Player.php b/src/Player.php index 6c53cf90..e71d31a5 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1484,7 +1484,7 @@ class Player{ $this->server->api->player->spawnToAllPlayers($this); $this->server->api->entity->spawnAll($this); $this->server->api->entity->spawnToAll($this->entity); - $this->server->api->chat->broadcast($this->username." joined the game."); + $this->server->api->chat->broadcast($this->username." joined the game"); $this->server->schedule(5, [$this->entity, "update"], [], true); $this->server->schedule(2, [$this->entity, "updateMovement"], [], true); @@ -1497,7 +1497,7 @@ class Player{ /*$this->sendInventory(); $this->sendSettings();*/ $this->orderChunks(); - //$this->getNextChunk($this->level); + //$this->getNextChunk($this->level); $this->loadAllChunks(); $this->blocked = false; diff --git a/src/constants/BlockIDs.php b/src/constants/BlockIDs.php index 69207149..74323445 100755 --- a/src/constants/BlockIDs.php +++ b/src/constants/BlockIDs.php @@ -18,6 +18,7 @@ define("STILL_WATER", 9); define("LAVA", 10); define("STILL_LAVA", 11); define("SAND", 12); +define("RED_SAND", "12:1"); define("GRAVEL", 13); define("GOLD_ORE", 14); define("IRON_ORE", 15); diff --git a/src/material/block/solid/SandBlock.php b/src/material/block/solid/SandBlock.php index d10aa6dc..4ef43d81 100644 --- a/src/material/block/solid/SandBlock.php +++ b/src/material/block/solid/SandBlock.php @@ -1,8 +1,13 @@ "Sand", + 1 => "Red Sand" + ]; + $this->name = $names[$this->meta]; $this->hardness = 2.5; }