Pārlūkot izejas kodu

fixes #1564

(cherry picked from commit 659703a107)
tags/v0.8.0.1
Shaun pirms 3 gadiem
committed by Big Bad Waffle
vecāks
revīzija
5bc8f663ac
2 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. +7
    -0
      src/server/events/events.js
  2. +4
    -0
      src/server/world/instancer.js

+ 7
- 0
src/server/events/events.js Parādīt failu

@@ -251,6 +251,13 @@ module.exports = {
config.events.afterGiveRewards(this, config);
},

stopAll: function () {
this.configs.forEach(c => {
if (c.event)
this.stopEvent(c);
});
},

stopEvent: function (config) {
let event = config.event;



+ 4
- 0
src/server/world/instancer.js Parādīt failu

@@ -99,9 +99,13 @@ module.exports = {
return;
}

spawners.reset();

objects.objects.length = 0;
objects.objects = [];

events.stopAll();

map.randomMap.generate();

map.seed = _.getGuid();


Notiek ielāde…
Atcelt
Saglabāt