mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed minecart
This commit is contained in:
parent
5f1774b8ce
commit
f200683643
3 changed files with 2 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ class MinecartItem extends Item{
|
|||
"x" => $target->getX() + 0.5,
|
||||
"y" => $target->getY() + 0.8,
|
||||
"z" => $target->getZ() + 0.5,
|
||||
];
|
||||
];
|
||||
$e = $server->api->entity->add($level, ENTITY_OBJECT, OBJECT_MINECART, $data);
|
||||
$server->api->entity->spawnToAll($e);
|
||||
if(($player->gamemode & 0x01) === 0x00){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue