mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Changes in Entity events
This commit is contained in:
parent
683c05f206
commit
c1aec49ad1
5 changed files with 23 additions and 20 deletions
|
|
@ -204,7 +204,7 @@ class BlockAPI{
|
|||
$data["x"] += mt_rand(2, 8) / 10;
|
||||
$data["y"] += 0.19;
|
||||
$data["z"] += mt_rand(2, 8) / 10;
|
||||
if($this->server->api->handle("item.drop", $data) !== false){
|
||||
if($this->server->api->handle("block.drop", $data) !== false){
|
||||
for($count = $stack; $count > 0; ){
|
||||
$data["stack"] = min(64, $count);
|
||||
$count -= $data["stack"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue