From 1b6e8c14f0222c62b6acf5f5425a08793feca341 Mon Sep 17 00:00:00 2001 From: Intyre Date: Sat, 6 Feb 2016 22:01:26 +0100 Subject: [PATCH 1/3] Bump protocol version for 0.13.2 --- src/pocketmine/PocketMine.php | 4 ++-- src/pocketmine/network/protocol/Info.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index f5e70a574..b1a35bab5 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -75,8 +75,8 @@ namespace pocketmine { const VERSION = "1.6dev"; const API_VERSION = "1.13.1"; const CODENAME = "[REDACTED]"; - const MINECRAFT_VERSION = "v0.13.1 alpha"; - const MINECRAFT_VERSION_NETWORK = "0.13.1"; + const MINECRAFT_VERSION = "v0.13.2 alpha"; + const MINECRAFT_VERSION_NETWORK = "0.13.2"; /* * Startup code. Do not look at it, it may harm you. diff --git a/src/pocketmine/network/protocol/Info.php b/src/pocketmine/network/protocol/Info.php index 3f0bdd7d6..9b34b39b3 100644 --- a/src/pocketmine/network/protocol/Info.php +++ b/src/pocketmine/network/protocol/Info.php @@ -30,7 +30,7 @@ interface Info{ /** * Actual Minecraft: PE protocol version */ - const CURRENT_PROTOCOL = 38; + const CURRENT_PROTOCOL = 39; const LOGIN_PACKET = 0x8f; const PLAY_STATUS_PACKET = 0x90; From d538a254ee5c1517ebf436d62ac676846df1afd8 Mon Sep 17 00:00:00 2001 From: PEMapModder Date: Tue, 9 Feb 2016 18:25:16 +0800 Subject: [PATCH 2/3] Resolves #3918 --- src/pocketmine/event/player/PlayerBucketEvent.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/event/player/PlayerBucketEvent.php b/src/pocketmine/event/player/PlayerBucketEvent.php index 48d67db21..f0490b14f 100644 --- a/src/pocketmine/event/player/PlayerBucketEvent.php +++ b/src/pocketmine/event/player/PlayerBucketEvent.php @@ -83,4 +83,11 @@ abstract class PlayerBucketEvent extends PlayerEvent implements Cancellable{ public function getBlockClicked(){ return $this->blockClicked; } -} \ No newline at end of file + + /** + * @return int + */ + public function getBlockFace(){ + return $this->blockFace; + } +} From cfca0a8726418efb6990d9ba7da2c4397e8609b7 Mon Sep 17 00:00:00 2001 From: PEMapModder Date: Thu, 11 Feb 2016 16:51:27 +0800 Subject: [PATCH 3/3] Fixed TallGrass::getDrops() --- src/pocketmine/block/TallGrass.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/block/TallGrass.php b/src/pocketmine/block/TallGrass.php index bce7fef36..c912a0787 100644 --- a/src/pocketmine/block/TallGrass.php +++ b/src/pocketmine/block/TallGrass.php @@ -73,7 +73,9 @@ class TallGrass extends Flowable{ public function getDrops(Item $item){ if(mt_rand(0, 15) === 0){ - return [Item::WHEAT_SEEDS, 0, 1]; + return [ + [Item::WHEAT_SEEDS, 0, 1] + ]; } return [];