This commit is contained in:
2023-05-30 12:30:56 +00:00
parent 9cb53b04af
commit 0d432c32ef

View File

@@ -1505,6 +1505,10 @@ var gameobject = {
stop() {},
kill() {
if (this.body === -1) {
Log.warn(`Object is already dead!`);
return;
}
Register.endofloop(() => {
cmd(2, this.body);
delete Game.objects[this.body];