Skip to content

Commit 02d88ed

Browse files
committed
add missing semicolons
1 parent 4dcdc9e commit 02d88ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/DistanceDetectorPeripheral.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ public final void setDetectionMode(IArguments args) throws LuaException {
4848
DetectionType detectionType;
4949
if (mode instanceof Number modeInd) {
5050
int index = Math.min(Math.max(modeInd.intValue(), 0), 2);
51-
detectionType = DetectionType.values()[index]
51+
detectionType = DetectionType.values()[index];
5252
} else if (mode instanceof String modeStr) {
5353
detectionType = switch (modeStr.toUpperCase()) {
5454
case "BLOCK" -> DetectionType.BLOCK;
5555
case "ENTITIES" -> DetectionType.ENTITIES;
5656
case "BOTH" -> DetectionType.BOTH;
5757
default -> throw new LuaException("Unknown detection mode '" + mode + "'");
58-
}
58+
};
5959
} else {
6060
throw new LuaException("arg #1 must be a string or a number");
6161
}

0 commit comments

Comments
 (0)