mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 15:19:56 +00:00
Merge branch 'master' of https://github.com/PocketMine/PocketMine-MP
This commit is contained in:
commit
03c19aefbf
@ -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.
|
||||||
|
@ -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 [];
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user