Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import static de.rettichlp.ucutils.UCUtils.LOGGER;
import static de.rettichlp.ucutils.UCUtils.commandService;
import static de.rettichlp.ucutils.UCUtils.configuration;
import static de.rettichlp.ucutils.UCUtils.player;
Expand Down Expand Up @@ -115,7 +116,7 @@ public void onScreenOpen(Screen screen, int scaledWidth, int scaledHeight) {
String titleString = genericContainerScreen.getTitle().getString();

switch (titleString) {
case "CarControl" -> {
case "ᴄᴀʀᴄᴏɴᴛʀᴏʟ" -> {
if (configuration.getOptions().car().fastLock()) {
interactionManager.clickSlot(genericContainerScreen.getScreenHandler().syncId, 0, 0, PICKUP, player);
}
Expand All @@ -125,6 +126,11 @@ public void onScreenOpen(Screen screen, int scaledWidth, int scaledHeight) {
interactionManager.clickSlot(genericContainerScreen.getScreenHandler().syncId, 0, 0, PICKUP, player);
}
}
default -> {
if (commandService.isSuperUser()) {
LOGGER.info("Screen opened: {}", titleString);
}
}
}
}
}
Expand Down