mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Rewritten Projectile movement handling, added ProjectileHitBlockEvent and ProjectileHitEntityEvent, fixed a swathe of arrow-related bugs
I usually avoid mega-commits, but one thing led to another.
This commit is contained in:
@ -355,7 +355,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
protected $lastDamageCause = null;
|
||||
|
||||
/** @var Block[] */
|
||||
private $blocksAround = [];
|
||||
protected $blocksAround = [];
|
||||
|
||||
/** @var float|null */
|
||||
public $lastX = null;
|
||||
@ -1387,7 +1387,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
* Returns whether the entity needs a movement update on the next tick.
|
||||
* @return bool
|
||||
*/
|
||||
final public function hasMovementUpdate() : bool{
|
||||
public function hasMovementUpdate() : bool{
|
||||
return (
|
||||
$this->forceMovementUpdate or
|
||||
$this->motionX != 0 or
|
||||
|
Reference in New Issue
Block a user