Skip to content

Commit

Permalink
fix: TempleGateReversed loenn 插件问题
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoJameson committed Aug 13, 2023
1 parent b5c0ddf commit 9658ab5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Entities/TempleGateReversed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.Xna.Framework;
using Monocle;

namespace Celeste.Mod.DJMapHelper.Entities;
namespace Celeste.Mod.DJMapHelper.Entities;

[CustomEntity("DJMapHelper/templeGateReversed")]
public class TempleGateReversed : Solid {
Expand Down Expand Up @@ -33,7 +33,7 @@ public class TempleGateReversed : Solid {
: base(position, 8f, height, true) {
this.type = type;
closedHeight = height;
Add(sprite = GFX.SpriteBank.Create("TempleGate_" + spriteName));
Add(sprite = GFX.SpriteBank.Create("templegate_" + spriteName));
sprite.X = Collider.Width / 2f;
sprite.Play("idle");
Add(shaker = new Shaker(false));
Expand Down
5 changes: 3 additions & 2 deletions Loenn/entities/temple_gate_reversed.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ local textures = {
theo = "objects/door/TempleDoorC00"
}

local textureOptions = {"default", "mirror", "theo"}

local types = {
"CloseBehindPlayer",
"CloseBehindPlayerAlways",
Expand All @@ -29,8 +31,7 @@ local types = {

templeGate.fieldInformation = {
sprite = {
fieldType = "anything",
options = textures,
options = textureOptions,
editable = false
},
["type"] = {
Expand Down

0 comments on commit 9658ab5

Please sign in to comment.