Skip to content

Commit

Permalink
Make getPickedItem() return null by default instead of air
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierLeon9966 authored Nov 15, 2024
1 parent 0a4c495 commit adeca34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entity/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ public function despawnFromAll() : void{
* Returns the item that players will equip when middle-clicking on this entity.
*/
public function getPickedItem() : ?Item{
return VanillaItems::AIR();
return null;
}

/**
Expand Down

0 comments on commit adeca34

Please sign in to comment.