s/facePos/clickVector/

clickVector better describes this
This commit is contained in:
Dylan K. Taylor
2017-10-27 19:05:26 +01:00
parent c55bc2d7e9
commit d1db27016e
51 changed files with 64 additions and 64 deletions

View File

@ -34,7 +34,7 @@ class SpawnEgg extends Item{
parent::__construct(self::SPAWN_EGG, $meta, "Spawn Egg");
}
public function onActivate(Level $level, Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $facePos) : bool{
public function onActivate(Level $level, Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : bool{
$nbt = Entity::createBaseNBT($blockReplace->add(0.5, 0, 0.5), null, lcg_value() * 360, 0);
if($this->hasCustomName()){