Skip to content

Commit

Permalink
Revert "Add util to dump db"
Browse files Browse the repository at this point in the history
This reverts commit e836251.
  • Loading branch information
IThundxr committed Nov 20, 2024
1 parent 558e283 commit 1987fe8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 108 deletions.
2 changes: 0 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ dependencies {
}

modCompileOnly("maven.modrinth:enchancement:1.20-26")

implementation(include("com.mysql:mysql-connector-j:8.0.31")!!)
}

tasks.processResources {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
org.gradle.jvmargs=-Xmx2G

# Mod Properties
mod_version = 0.0.41
mod_version = 0.0.40
maven_group = dev.ithundxr
archives_base_name = RailwaysTweaks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
import com.simibubi.create.Create;
import com.simibubi.create.content.trains.entity.CarriageContraptionEntity;
import dev.ithundxr.railwaystweaks.RailwaysTweaks;
import dev.ithundxr.railwaystweaks.database.DumpDatabase;
import dev.ithundxr.railwaystweaks.mixin.compat.tconstruct.SimpleChannelAccessor;
import me.pepperbell.simplenetworking.C2SPacket;
import me.pepperbell.simplenetworking.S2CPacket;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.minecraft.Util;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.network.chat.Component;
import slimeknights.tconstruct.common.network.TinkerNetwork;
Expand Down Expand Up @@ -38,16 +36,6 @@ public static void init() {
.requires(cs -> cs.hasPermission(2))
.executes(ctx -> avgMSPT(ctx.getSource())));
});

CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> {
dispatcher.register(literal("railwaystweaks")
.then(literal("dump_db")
.requires(cs -> cs.hasPermission(4))
.executes(ctx -> {
Util.ioPool().execute(DumpDatabase::dump);
return 0;
})));
});
}

private static ArgumentBuilder<CommandSourceStack, ?> $dump_hephaestus_packets() {
Expand Down

This file was deleted.

0 comments on commit 1987fe8

Please sign in to comment.