Browse Source

feat #1835

tags/v0.10.4^2
Shaun 2 years ago
parent
commit
06f716ecee
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/server/components/door.js

+ 5
- 0
src/server/components/door.js View File

@@ -20,6 +20,11 @@ module.exports = {
this.destroyKey = blueprint.destroyKey;
this.autoClose = blueprint.autoClose;

if (blueprint.openSprite)
this.openSprite = blueprint.openSprite;
if (blueprint.closedSprite)
this.closedSprite = blueprint.closedSprite;

if (this.closed) {
this.obj.instance.physics.setCollision(this.obj.x, this.obj.y, true);
this.obj.instance.objects.notifyCollisionChange(this.obj.x, this.obj.y, true);


Loading…
Cancel
Save