Bascially supprt armor for MCPE 0.6.1 & 0.7.0

This commit is contained in:
yefengeeeeeeeeeee 2026-07-13 18:55:10 +08:00
parent bec37f62f8
commit 896eb736f0
3 changed files with 24 additions and 14 deletions

View file

@ -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"]);