This commit is contained in:
PEMapModder 2016-02-12 14:09:39 +08:00
commit 03c19aefbf
4 changed files with 14 additions and 5 deletions

View File

@ -75,8 +75,8 @@ namespace pocketmine {
const VERSION = "1.6dev"; const VERSION = "1.6dev";
const API_VERSION = "1.13.1"; const API_VERSION = "1.13.1";
const CODENAME = "[REDACTED]"; const CODENAME = "[REDACTED]";
const MINECRAFT_VERSION = "v0.13.1 alpha"; const MINECRAFT_VERSION = "v0.13.2 alpha";
const MINECRAFT_VERSION_NETWORK = "0.13.1"; const MINECRAFT_VERSION_NETWORK = "0.13.2";
/* /*
* Startup code. Do not look at it, it may harm you. * Startup code. Do not look at it, it may harm you.

View File

@ -73,7 +73,9 @@ class TallGrass extends Flowable{
public function getDrops(Item $item){ public function getDrops(Item $item){
if(mt_rand(0, 15) === 0){ if(mt_rand(0, 15) === 0){
return [Item::WHEAT_SEEDS, 0, 1]; return [
[Item::WHEAT_SEEDS, 0, 1]
];
} }
return []; return [];

View File

@ -83,4 +83,11 @@ abstract class PlayerBucketEvent extends PlayerEvent implements Cancellable{
public function getBlockClicked(){ public function getBlockClicked(){
return $this->blockClicked; return $this->blockClicked;
} }
}
/**
* @return int
*/
public function getBlockFace(){
return $this->blockFace;
}
}

View File

@ -30,7 +30,7 @@ interface Info{
/** /**
* Actual Minecraft: PE protocol version * Actual Minecraft: PE protocol version
*/ */
const CURRENT_PROTOCOL = 38; const CURRENT_PROTOCOL = 39;
const LOGIN_PACKET = 0x8f; const LOGIN_PACKET = 0x8f;
const PLAY_STATUS_PACKET = 0x90; const PLAY_STATUS_PACKET = 0x90;