Skip to content
Snippets Groups Projects
Commit 5ffcb282 authored by Chris Kearney's avatar Chris Kearney
Browse files

bug here, forgot to migrate this command apparently

parent b38ccf96
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,7 @@ public class BuildCommand extends Command {
@Override
public synchronized void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
;
try {
execCommand(ctx, e, () -> {
if (originalMessageParts.size() > 1) {
String desiredBuildDirection = originalMessageParts.get(1);
if (desiredBuildDirection.equalsIgnoreCase("notable")) {
......@@ -118,10 +117,7 @@ public class BuildCommand extends Command {
}
channelUtils.write(playerId, "Room already exists at that location.");
}
} finally {
super.messageReceived(ctx, e);
}
});
}
private FloorModel newFloorModel(Integer floorId, Integer newRoomId, Integer currentRoomId, RemoteExit remoteExit) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment