mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Adds beds
This commit is contained in:
parent
f7508adb29
commit
1677ce4b1d
4 changed files with 59 additions and 13 deletions
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
class TimeAPI{
|
||||
var $phases = array(
|
||||
public static $phases = array(
|
||||
"day" => 0,
|
||||
"sunset" => 9500,
|
||||
"night" => 10900,
|
||||
|
|
@ -105,7 +105,7 @@ class TimeAPI{
|
|||
$time = !is_integer($time) ? $this->get(false, $time):$time;
|
||||
if($time < TimeAPI::$phases["sunset"]){
|
||||
$time = "day";
|
||||
}elseif($time < TimeAPI::$phase["night"]){
|
||||
}elseif($time < TimeAPI::$phases["night"]){
|
||||
$time = "sunset";
|
||||
}elseif($time < TimeAPI::$phases["sunrise"]){
|
||||
$time = "night";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue