From 14e1dda3275cf235ebe81e0a78e9360dafca18d2 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 4 Dec 2013 18:19:39 +0100 Subject: [PATCH] Removed KiwiIRC chat, use official freenode webirc --- README.md | 3 +-- src/pmf/Level.php | 4 +--- src/utils/NBT.php | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e04c42e8a..331b5f9db 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,7 @@ The entire server is done in PHP, and has been tested, profiled and optimized to ### [Twitter @PocketMine](https://twitter.com/PocketMine) ## IRC Chat #pocketmine (or #mcpedevs) @ irc.freenode.net -[![#pocketmine channel WebIRC](https://kiwiirc.com/buttons/chat.freenode.net/pocketmine.png)](https://kiwiirc.com/client/chat.freenode.net/#pocketmine) -[![#mcpedevs channel WebIRC](https://kiwiirc.com/buttons/chat.freenode.net/mcpedevs.png)](https://kiwiirc.com/client/chat.freenode.net/#mcpedevs) +[#pocketmine + #mcpedevs channel WebIRC](http://webchat.freenode.net/?channels=pocketmine,mcpedevs) ## Third-party Libraries/Protocols Used diff --git a/src/pmf/Level.php b/src/pmf/Level.php index 49a18bab4..d5d6d0baf 100644 --- a/src/pmf/Level.php +++ b/src/pmf/Level.php @@ -315,9 +315,7 @@ class PMFLevel extends PMF{ $aX = $x - ($X << 4); $aZ = $z - ($Z << 4); $aY = $y - ($Y << 4); - $b = ord($this->chunks[$index] - [$Y] - {(int) ($aY + ($aX << 5) + ($aZ << 9))}); + $b = ord($this->chunks[$index][$Y]{(int) ($aY + ($aX << 5) + ($aZ << 9))}); return $b; } diff --git a/src/utils/NBT.php b/src/utils/NBT.php index 12a95577b..b6e797424 100644 --- a/src/utils/NBT.php +++ b/src/utils/NBT.php @@ -154,6 +154,7 @@ class NBT{ $this->parseTree($value); break; default: + echo bin2hex(substr($this->binary, $this->offset - 1)).PHP_EOL.PHP_EOL; die("Invalid NBT Tag $tag"); break; } @@ -198,6 +199,7 @@ class NBT{ $this->parseTree($value); break; default: + echo bin2hex(substr($this->binary, $this->offset - 1)).PHP_EOL.PHP_EOL; die("Invalid NBT Tag $tag"); break; }