Fix "set block timer" error after "/plot download" with legacy-webinterface setting (#3812)

Add missing `Plot.removeRunning` call to Download
This commit is contained in:
Schuwi
2022-10-01 11:37:24 +02:00
committed by GitHub
parent 3446b913cd
commit d1a85982fb

View File

@@ -181,6 +181,7 @@ public class Download extends SubCommand {
schematicHandler.upload(compoundTag, null, null, new RunnableVal<>() { schematicHandler.upload(compoundTag, null, null, new RunnableVal<>() {
@Override @Override
public void run(URL value) { public void run(URL value) {
plot.removeRunning();
player.sendMessage( player.sendMessage(
TranslatableCaption.of("web.generation_link_success"), TranslatableCaption.of("web.generation_link_success"),
Template.of("download", value.toString()), Template.of("download", value.toString()),