Skip to content

Commit f9f2952

Browse files
committed
Self-reviewing is useful sometimes
1 parent 82a5c5a commit f9f2952

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Ahorn/entities/noDashRefillSpring.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module SpringCollab2020DashSpring
1+
module SpringCollab2020NoDashRefillSpring
22

33
using ..Ahorn, Maple
44

Entities/NoDashRefillSpring.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
using Microsoft.Xna.Framework;
33
using Monocle;
44
using System;
5-
using System.Collections.Generic;
6-
using System.Linq;
75
using System.Reflection;
8-
using System.Text;
9-
using System.Threading.Tasks;
106

117
namespace Celeste.Mod.SpringCollab2020.Entities {
128
[CustomEntity("SpringCollab2020/NoDashRefillSpring", "SpringCollab2020/NoDashRefillSpringLeft", "SpringCollab2020/NoDashRefillSpringRight")]
@@ -18,15 +14,15 @@ public NoDashRefillSpring(EntityData data, Vector2 offset)
1814
: base(data.Position + offset, GetOrientationFromName(data.Name), data.Bool("playerCanUse", true)) {
1915

2016
// remove the vanilla player collider. this is the one thing we want to mod here.
21-
foreach(Component component in this) {
22-
if(component.GetType() == typeof(PlayerCollider)) {
17+
foreach (Component component in this) {
18+
if (component.GetType() == typeof(PlayerCollider)) {
2319
Remove(component);
2420
break;
2521
}
2622
}
2723

2824
// replace it with our own collider.
29-
if(data.Bool("playerCanUse", true)) {
25+
if (data.Bool("playerCanUse", true)) {
3026
Add(new PlayerCollider(OnCollide));
3127
}
3228
}

0 commit comments

Comments
 (0)