mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Bascially supprt armor for MCPE 0.6.1 & 0.7.0
This commit is contained in:
parent
bec37f62f8
commit
896eb736f0
3 changed files with 24 additions and 14 deletions
|
|
@ -42,12 +42,10 @@ class PlayerAPI{
|
|||
public function handle($data, $event){
|
||||
switch($event){
|
||||
case "player.death":
|
||||
if($data["player"]->PROTOCOL <= ProtocolInfo9::CURRENT_PROTOCOL_9){
|
||||
if($data["player"]->PROTOCOL < ProtocolInfo12::CURRENT_PROTOCOL_12){
|
||||
$data["player"]->isWorkBench = false;
|
||||
$data["player"]->isStoneCutter = false;
|
||||
if($data["player"]->PROTOCOL < ProtocolInfo6::CURRENT_PROTOCOL_6){
|
||||
$data["player"]->isOre = [];
|
||||
}
|
||||
$data["player"]->isOre = [];
|
||||
}
|
||||
if(is_numeric($data["cause"])){
|
||||
$e = $this->server->api->entity->get($data["cause"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue