some changes to dirt & grass update

This commit is contained in:
GameHerobrine 2022-09-07 22:52:03 +03:00
parent c76530c034
commit a1aaa76e84
4 changed files with 13 additions and 25 deletions

View file

@ -425,7 +425,6 @@ class PocketMinecraftServer{
if(!is_callable($callback)){
return false;
}
$chcnt = $this->scheduleCnt++;
$this->schedule[$chcnt] = [$callback, $data, $eventName];
$this->query("INSERT INTO actions (ID, interval, last, repeat) VALUES(" . $chcnt . ", " . ($ticks / 20) . ", " . microtime(true) . ", " . (((bool) $repeat) === true ? 1 : 0) . ");");