[ChatCommandHandler] '/time add <value>' now allows negative values.
This commit is contained in:
parent
f4be71c731
commit
55d2bdab72
@ -157,7 +157,7 @@ void ChatCommandHandler::timeCommand(const std::vector<std::string> &command, Cl
|
||||
}
|
||||
else if (command.at(1) == "add") {
|
||||
try {
|
||||
u64 ticks = std::stoull(command.at(2));
|
||||
s64 ticks = std::stoll(command.at(2));
|
||||
|
||||
GameTime::setTicks(GameTime::getTicks() + ticks);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user