Skip to content

Commit 370b9eb

Browse files
committed
SocketHandler place, stop adding go as template & reset action afterward
1 parent 7df2f4e commit 370b9eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/dev/dfonline/codeclient/websocket/SocketHandler.java

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.mojang.brigadier.exceptions.CommandSyntaxException;
99
import dev.dfonline.codeclient.CodeClient;
1010
import dev.dfonline.codeclient.Utility;
11+
import dev.dfonline.codeclient.action.None;
1112
import dev.dfonline.codeclient.action.impl.ClearPlot;
1213
import dev.dfonline.codeclient.action.impl.GetPlotSize;
1314
import dev.dfonline.codeclient.action.impl.MoveToSpawn;
@@ -216,6 +217,7 @@ private static class Place extends SocketHandler.Action {
216217
public void start(WebSocket responder) {
217218
if(!ready) return;
218219
CodeClient.currentAction = new PlaceTemplates(templates, () -> {
220+
CodeClient.currentAction = new None();
219221
if(responder.isOpen()) responder.send("place done");
220222
next();
221223
});
@@ -229,6 +231,7 @@ public void message(WebSocket responder, String message) {
229231
if(Objects.equals(actionQueue.get(0), this)) {
230232
this.start(responder);
231233
}
234+
return;
232235
}
233236

234237
ItemStack template = new ItemStack(Items.ENDER_CHEST);

0 commit comments

Comments
 (0)