Improve crops system
This commit is contained in:
@@ -99,6 +99,7 @@ export class ModRuntime {
|
||||
player_leave: new Signal(),
|
||||
server_start: new Signal(),
|
||||
tick: new Signal(),
|
||||
new_day: new Signal(),
|
||||
};
|
||||
|
||||
// per mod key value storage, saved with the world
|
||||
@@ -368,6 +369,9 @@ export class ModRuntime {
|
||||
get time() {
|
||||
return game().world.time;
|
||||
},
|
||||
get day() {
|
||||
return game().world.day;
|
||||
},
|
||||
set_time: (time) => {
|
||||
if (!Number.isInteger(time) || time < 0) {
|
||||
throw new Error(`time must be a whole number of ticks, not ${time}`);
|
||||
|
||||
Reference in New Issue
Block a user