mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
arrow collision tweaks
This commit is contained in:
parent
f8ec00dad9
commit
8b07056323
17 changed files with 137 additions and 51 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue