Skip to content

Commit

Permalink
General cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Mar 31, 2024
1 parent 6770e4a commit 2d82d08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
9 changes: 1 addition & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ processResources {

def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release.set(targetJavaVersion)
Expand All @@ -72,14 +68,11 @@ java {
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
rename { "${it}_${archives_base_name}"}
}
}
5 changes: 5 additions & 0 deletions src/main/java/dev/ithundxr/railwaystweaks/RailwaysTweaks.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package dev.ithundxr.railwaystweaks;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.spongepowered.asm.mixin.MixinEnvironment;

public class RailwaysTweaks implements ModInitializer {
public static final String MODID = "railwaystweaks";
Expand All @@ -11,5 +13,8 @@ public class RailwaysTweaks implements ModInitializer {
@Override
public void onInitialize() {
LOGGER.info("Railways Tweaks is loading...");

if (FabricLoader.getInstance().isDevelopmentEnvironment())
MixinEnvironment.getCurrentEnvironment().audit();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.context.UseOnContext;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.properties.BooleanProperty;
import net.minecraft.world.phys.Vec3;
Expand All @@ -19,7 +18,7 @@
import org.spongepowered.asm.mixin.Shadow;

@Mixin(CatwalkRailingBlock.class)
public abstract class CatwalkRailingBlockMixin implements IWrenchable {
public class CatwalkRailingBlockMixin implements IWrenchable {
@Shadow public static BooleanProperty fromDirection(Direction face) { throw new AssertionError(); }

@Shadow @Final public static BooleanProperty EAST_FENCE;
Expand Down

0 comments on commit 2d82d08

Please sign in to comment.