arrow collision tweaks

This commit is contained in:
GameHerobrine 2024-05-04 05:51:31 +03:00
parent f8ec00dad9
commit 8b07056323
17 changed files with 137 additions and 51 deletions

View file

@ -707,7 +707,7 @@ class Player{
$pk->rider = $data["rider"];
}
$pk->riding = $data["riding"];
$pk->type = 0; //TODO;
$pk->type = 0;
$this->dataPacket($pk);
break;
case "tile.update":
@ -1920,7 +1920,7 @@ class Player{
case 5: //Shot arrow
if($this->entity->inAction){
$arrowSlot = $this->hasItem(ARROW);
if($this->getSlot($this->slot)->getID() === BOW && (($this->gamemode & 0x01) == 0x1 || $arrowSlot !== false)){ //TODO check arrow count
if($this->getSlot($this->slot)->getID() === BOW && (($this->gamemode & 0x01) == 0x1 || $arrowSlot !== false)){
if($this->startAction !== false){
$initalPower = $this->entity->inActionCounter;
$power = $initalPower / 20;