Skip to content

Commit 67a5972

Browse files
authored
Cleanup EvtEntityTransform toString
1 parent 3ad6b25 commit 67a5972

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main/java/ch/njol/skript/events/EvtEntityTransform.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,9 @@ public boolean check(Event event) {
7272

7373
@Override
7474
public String toString(@Nullable Event event, boolean debug) {
75-
if (datas == null) {
76-
return "entity transform" + (reasons == null ? "" : " due to " + reasons.toString(event, debug));
77-
} else {
78-
return datas.toString(event, debug) + " transforming" + (reasons == null ? "" : " due to " + reasons.toString(event, debug));
79-
}
80-
return "entities transforming";
75+
if (datas == null)
76+
return "entities transforming" + (reasons == null ? "" : " due to " + reasons.toString(event, debug));
77+
return datas.toString(event, debug) + " transforming" + (reasons == null ? "" : " due to " + reasons.toString(event, debug));
8178
}
8279

8380
}

0 commit comments

Comments
 (0)