Improve crops system

This commit is contained in:
2026-09-26 18:32:38 -03:00
parent e22f12c0b6
commit 0fa6ec4ed3
15 changed files with 394 additions and 31 deletions
+4
View File
@@ -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}`);