mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
ContainerInventory: remove redundant check
This commit is contained in:
parent
3a5709bf5e
commit
70eb41470c
@ -50,7 +50,7 @@ abstract class ContainerInventory extends BaseInventory{
|
|||||||
|
|
||||||
if($holder instanceof Entity){
|
if($holder instanceof Entity){
|
||||||
$pk->entityUniqueId = $holder->getId();
|
$pk->entityUniqueId = $holder->getId();
|
||||||
}elseif($holder instanceof Vector3){
|
}else{
|
||||||
$pk->x = $holder->getFloorX();
|
$pk->x = $holder->getFloorX();
|
||||||
$pk->y = $holder->getFloorY();
|
$pk->y = $holder->getFloorY();
|
||||||
$pk->z = $holder->getFloorZ();
|
$pk->z = $holder->getFloorZ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user