Immortal trains

- Fix /c trains command running the wrong command to remove trains
This commit is contained in:
IThundxr 2025-01-04 17:29:09 -05:00
parent b3dde23fd7
commit 57d01ce71e
Failed to generate hash of commit

View file

@ -166,7 +166,7 @@ public class DumpRailwaysCommand {
Components.literal("Remove").withStyle(style -> style.withColor(orange))
).withStyle(style -> style
.withColor(blue)
.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/c train kill " + train.id.toString()))
.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/c train remove " + train.id.toString()))
.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, Components.literal("Click to remove ").append(train.name)))
)
);