mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed placing Saplings in farmland
This commit is contained in:
parent
a7cc37ead6
commit
ada2662627
20
README.md
20
README.md
@ -1,3 +1,4 @@
|
|||||||
|
```
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
@ -27,9 +28,10 @@
|
|||||||
\ | /
|
\ | /
|
||||||
\ | /
|
\ | /
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
# PocketMine-MP
|
||||||
|
|
||||||
PocketMine-MP
|
|
||||||
=============
|
|
||||||
Github repo: https://github.com/shoghicp/PocketMine-MP
|
Github repo: https://github.com/shoghicp/PocketMine-MP
|
||||||
|
|
||||||
Server (and client) Minecraft Pocket Edition library written in PHP.
|
Server (and client) Minecraft Pocket Edition library written in PHP.
|
||||||
@ -42,24 +44,24 @@ Check the wiki! https://github.com/shoghicp/PocketMine-MP/wiki
|
|||||||
**Tested in: `v4.0.0, v5.0.0`**
|
**Tested in: `v4.0.0, v5.0.0`**
|
||||||
|
|
||||||
|
|
||||||
Current features of the server:
|
## Current features of the server:
|
||||||
-------------------------------
|
|
||||||
* Full Creative mode!
|
* Full Creative mode!
|
||||||
* Plugin API
|
* Plugin API
|
||||||
* Custom world generation
|
* Custom world generation
|
||||||
* Update Channels!! (stable / dev)
|
* Update Channels!! (stable / dev)
|
||||||
|
|
||||||
|
|
||||||
How to contact me
|
## How to contact me
|
||||||
-----------------
|
|
||||||
* Email - <shoghicp@gmail.com>
|
* Email - <shoghicp@gmail.com>
|
||||||
* Twitter - [@shoghicp](https://twitter.com/shoghicp)
|
* Twitter - [@shoghicp](https://twitter.com/shoghicp)
|
||||||
* Via IRC - #mcdevs or #mcpedevs on *irc.freenode.net* (or just /msg me there)
|
* Via IRC - #mcdevs or #mcpedevs on *irc.freenode.net* (or just /msg me there)
|
||||||
* [MinecraftForums profile](http://www.minecraftforum.net/user/1476633-shoghicp/)
|
* [MinecraftForums profile](http://www.minecraftforum.net/user/1476633-shoghicp/)
|
||||||
|
|
||||||
|
|
||||||
Third-party Libraries Used
|
## Third-party Libraries Used
|
||||||
--------------------------
|
|
||||||
* __[PHP NBT](https://github.com/TheFrozenFire/PHP-NBT-Decoder-Encoder/blob/master/nbt.class.php)__ by [TheFrozenFire](https://github.com/TheFrozenFire): Class for reading in NBT-format files
|
* __[PHP NBT](https://github.com/TheFrozenFire/PHP-NBT-Decoder-Encoder/blob/master/nbt.class.php)__ by _[TheFrozenFire](https://github.com/TheFrozenFire)_: Class for reading in NBT-format files
|
||||||
* __[Math_BigInteger](http://phpseclib.sourceforge.net/math/intro.html)__ by _[phpseclib](http://phpseclib.sourceforge.net/)_: Pure-PHP arbitrary precission integer arithmetic library
|
* __[Math_BigInteger](http://phpseclib.sourceforge.net/math/intro.html)__ by _[phpseclib](http://phpseclib.sourceforge.net/)_: Pure-PHP arbitrary precission integer arithmetic library
|
||||||
* __[Spyc](https://github.com/mustangostang/spyc/blob/master/Spyc.php)__ by _[Vlad Andersen](https://github.com/mustangostang)_: A simple YAML loader/dumper class for PHP
|
* __[Spyc](https://github.com/mustangostang/spyc/blob/master/Spyc.php)__ by _[Vlad Andersen](https://github.com/mustangostang)_: A simple YAML loader/dumper class for PHP
|
@ -193,17 +193,10 @@ class BlockAPI{
|
|||||||
case 59:
|
case 59:
|
||||||
case 105:
|
case 105:
|
||||||
if($data["block"] === 351 and $data["meta"] === 0x0F){ //Bonemeal
|
if($data["block"] === 351 and $data["meta"] === 0x0F){ //Bonemeal
|
||||||
switch($target[0]){
|
|
||||||
case 59:
|
|
||||||
case 105:
|
|
||||||
$data["block"] = $target[0];
|
$data["block"] = $target[0];
|
||||||
$data["meta"] = 0x07;
|
$data["meta"] = 0x07;
|
||||||
$this->server->trigger("player.block.place", $data);
|
$this->server->trigger("player.block.place", $data);
|
||||||
$this->updateBlocksAround($data["x"], $data["y"], $data["z"], BLOCK_UPDATE_NORMAL);
|
$this->updateBlocksAround($data["x"], $data["y"], $data["z"], BLOCK_UPDATE_NORMAL);
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
$cancelPlace = true;
|
$cancelPlace = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -296,7 +289,7 @@ class BlockAPI{
|
|||||||
switch($data["block"]){
|
switch($data["block"]){
|
||||||
case 6:
|
case 6:
|
||||||
if($target[0] === 60){
|
if($target[0] === 60){
|
||||||
return false;
|
break;
|
||||||
}
|
}
|
||||||
case 37:
|
case 37:
|
||||||
case 38:
|
case 38:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user