Sfoglia il codice sorgente

bug: Attempt at fixing an issue that was causing objects to sometimes be invisible after portaling to interior areas

tags/v0.9.0^2
Shaun 3 anni fa
parent
commit
3e5cdb4871
1 ha cambiato i file con 1 aggiunte e 4 eliminazioni
  1. +1
    -4
      src/server/components/portal.js

+ 1
- 4
src/server/components/portal.js Vedi File

@@ -17,7 +17,7 @@ module.exports = {
},

collisionEnter: async function (obj) {
const { player, syncer, instance: { physics, syncer: globalSyncer } } = obj;
const { player, instance: { physics, syncer: globalSyncer } } = obj;

if (!player)
return;
@@ -32,9 +32,6 @@ module.exports = {
obj.x = this.toPos.x;
obj.y = this.toPos.y;

syncer.set(false, null, 'x', obj.x);
syncer.set(false, null, 'y', obj.y);

physics.addObject(obj, obj.x, obj.y);

globalSyncer.queue('onRespawn', {


Caricamento…
Annulla
Salva