Skip to content

Commit dcff1fe

Browse files
committed
feat: spotless
1 parent b376cf1 commit dcff1fe

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ spotless {
9494
.style('PALANTIR')
9595

9696
removeUnusedImports()
97+
trimTrailingWhitespace()
9798
endWithNewline()
9899
}
99100
}

src/main/java/me/matl114/events/RenderListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ public static void renderMoreTasks(MatrixStack stack, float tickDelta) {
116116
names = {"renderer", "stack"})
117117
private static final EventChannel<DrawContext> renderSlot = new EventChannel<>();
118118

119-
public static void renderSlotInScreen(
120-
DrawContext context, HandledScreen<?> renderer, Slot stack) {
119+
public static void renderSlotInScreen(DrawContext context, HandledScreen<?> renderer, Slot stack) {
121120
if (renderSlot.isEmpty()) return;
122121
Event<DrawContext> contextEvent = new Event<>(context, false, false, renderer, stack);
123122
renderSlot.handleValue(contextEvent);

src/main/java/me/matl114/gui/other/BeaconEffectSelectButton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.util.List;
44
import lombok.Getter;
55
import me.matl114.utils.ScreenUtils;
6-
import me.matl114.versioned.api.VDrawContext;
76
import net.minecraft.client.MinecraftClient;
87
import net.minecraft.client.gui.DrawContext;
98
import net.minecraft.client.gui.screen.narration.NarrationMessageBuilder;
@@ -60,6 +59,7 @@ public void onPress() {
6059
currentIndex = currentIndex + EFFECTS_BEACON.size() + 1 + (ScreenUtils.hasShiftDown() ? -1 : 1);
6160
updateCurrentEffect();
6261
}
62+
6363
@Override
6464
public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta) {
6565
Identifier identifier;

src/main/java/me/matl114/jsApi/SlimefunHelperApi.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ private static void initTask() {
3434
Debug.info("JsMacros library inject failed, caused by: ");
3535
e.printStackTrace();
3636
Debug.info("Running Mock js lib test");
37-
// createSlimefunHelperApi(MockLibBase.class);
38-
// for (var clazz : slimefunHelperApi) {
39-
// try {
40-
// clazz.newInstance();
41-
// } catch (Throwable e1) {
42-
// throw new RuntimeException(e1);
43-
// }
44-
// }
37+
// createSlimefunHelperApi(MockLibBase.class);
38+
// for (var clazz : slimefunHelperApi) {
39+
// try {
40+
// clazz.newInstance();
41+
// } catch (Throwable e1) {
42+
// throw new RuntimeException(e1);
43+
// }
44+
// }
4545
Debug.info("Mock lib test success");
4646
}
4747
}

src/main/java/me/matl114/mixins/hack/ClientPlayerMixin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public ClientPlayerMixin(ClientWorld world, GameProfile profile) {
124124
@Shadow
125125
public Input input;
126126

127-
128127
@Shadow
129128
private boolean lastSprinting;
130129

0 commit comments

Comments
 (0)