Skip to content

Commit

Permalink
I have defeated the elephant 👑
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Aug 10, 2024
1 parent f0ebd95 commit 40e9f05
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dependencies {
modCompileOnly("net.fabricmc.fabric-api:fabric-api:${"fabric_api_version"()}")

// Steam 'n' Rails
modCompileOnly("com.railwayteam.railways:Steam_Rails-common-${"minecraft_version"()}:${"snr_version"()}+common-mc${"minecraft_version"()}")
modCompileOnly("com.railwayteam.railways:Steam_Rails-common-${"minecraft_version"()}:${"snr_version"()}+common-mc${"minecraft_version"()}") { isTransitive = false }

// Carry On
modCompileOnly("tschipp.carryon:carryon-fabric-${"minecraft_version"()}:${"carryon_fabric_version"()}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ public class NumismaticsConfig {
@ApiStatus.Internal
public static final Map<ModConfig.Type, ConfigBase> CONFIGS = new EnumMap<>(ModConfig.Type.class);

//private static CClient client;
private static CClient client;
private static CCommon common;
private static CServer server;

// public static CClient client() {
// return client;
// }
public static CClient client() {
return client;
}

public static CCommon common() {
return common;
Expand Down Expand Up @@ -68,7 +68,7 @@ private static <T extends ConfigBase> T register(Supplier<T> factory, ModConfig.

@ApiStatus.Internal
public static void registerCommon() {
//client = register(CClient::new, ModConfig.Type.CLIENT);
client = register(CClient::new, ModConfig.Type.CLIENT);
common = register(CCommon::new, ModConfig.Type.COMMON);
server = register(CServer::new, ModConfig.Type.SERVER);
}
Expand Down
7 changes: 2 additions & 5 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ dependencies {
// deprecated modules @ runtime only
modLocalRuntime("net.fabricmc.fabric-api:fabric-api-deprecated:${"fabric_api_version"()}")

// because create fabric is a bit broken I think
modImplementation("net.minecraftforge:forgeconfigapiport-fabric:4.2.11")

// Development QOL
modLocalRuntime("maven.modrinth:lazydfu:${"lazydfu_version"()}")
modLocalRuntime("com.terraformersmc:modmenu:${"modmenu_version"()}")
Expand All @@ -87,9 +84,9 @@ dependencies {
modLocalRuntime("dev.emi:emi-fabric:${"emi_version"()}")

// Steam 'n' Rails
modCompileOnly("com.railwayteam.railways:Steam_Rails-fabric-${"minecraft_version"()}:${"snr_version"()}+fabric-mc${"minecraft_version"()}")
modCompileOnly("com.railwayteam.railways:Steam_Rails-fabric-${"minecraft_version"()}:${"snr_version"()}+fabric-mc${"minecraft_version"()}") { isTransitive = false }
if ("enable_snr"().toBoolean()) {
modLocalRuntime("com.railwayteam.railways:Steam_Rails-fabric-${"minecraft_version"()}:${"snr_version"()}+fabric-mc${"minecraft_version"()}")
modLocalRuntime("com.railwayteam.railways:Steam_Rails-fabric-${"minecraft_version"()}:${"snr_version"()}+fabric-mc${"minecraft_version"()}") { isTransitive = false }
}

// Carry On
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
@Mixin(ItemHandlerWrapper.class)
@SuppressWarnings("UnstableApiUsage")
public interface ItemHandlerWrapperAccessor {
@Accessor("wrapped")
@Accessor(value = "wrapped", remap = false)
void setWrapped(Storage<ItemVariant> wrapped);

@Accessor("wrapped")
@Accessor(value = "wrapped", remap = false)
Storage<ItemVariant> getWrapped();
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
@SuppressWarnings("UnstableApiUsage")
public abstract class PortableFluidInterfaceBlockEntityMixin extends PortableStorageInterfaceBlockEntity {

@Shadow protected InterfaceFluidHandler capability;
@Shadow(remap = false) protected InterfaceFluidHandler capability;
@Unique
private FluidSalepointTargetBehaviour railway$salepointBehaviour;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
@Mixin(WrappedStorage.class)
@SuppressWarnings("UnstableApiUsage")
public interface WrappedStorageAccessor<T> extends Storage<T> {
@Accessor("wrapped")
@Accessor(value = "wrapped", remap = false)
Storage<T> getWrapped();

@Accessor("wrapped")
@Accessor(value = "wrapped", remap = false)
void setWrapped(Storage<T> wrapped);
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@Mixin(PortableEnergyInterfaceBlockEntity.class)
@SuppressWarnings("UnstableApiUsage")
public abstract class PortableEnergyInterfaceBlockEntityMixin extends PortableStorageInterfaceBlockEntity {
@Shadow
@Shadow(remap = false)
protected InterfaceEnergyHandler capability;

@Unique
Expand Down Expand Up @@ -225,10 +225,10 @@ public void write(@NotNull CompoundTag nbt, boolean clientPacket) {
@ConditionalMixin(mods = Mods.CREATEADDITION)
@Mixin(InterfaceEnergyHandler.class)
private interface InterfaceEnergyHandlerAccessor {
@Accessor("wrapped")
@Accessor(value = "wrapped", remap = false)
EnergyStorage getWrapped();

@Accessor("wrapped")
@Accessor(value = "wrapped", remap = false)
void setWrapped(EnergyStorage wrapped);
}
}
4 changes: 2 additions & 2 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ dependencies {
modLocalRuntime("mezz.jei:jei-${"minecraft_version"()}-forge:${"jei_version"()}")

// Steam 'n' Rails
modCompileOnly("com.railwayteam.railways:Steam_Rails-forge-${"minecraft_version"()}:${"snr_version"()}+forge-mc${"minecraft_version"()}")
modCompileOnly("com.railwayteam.railways:Steam_Rails-forge-${"minecraft_version"()}:${"snr_version"()}+forge-mc${"minecraft_version"()}") { isTransitive = false }
if ("enable_snr"().toBoolean()) {
modLocalRuntime("com.railwayteam.railways:Steam_Rails-forge-${"minecraft_version"()}:${"snr_version"()}+forge-mc${"minecraft_version"()}")
modLocalRuntime("com.railwayteam.railways:Steam_Rails-forge-${"minecraft_version"()}:${"snr_version"()}+forge-mc${"minecraft_version"()}") { isTransitive = false }
}

// Carry On
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jade_version = 11.10.0+fabric

# Steam 'n' Rails
snr_version = 1.6.4
enable_snr = true
enable_snr = false

# Carry On - https://github.com/Tschipp/CarryOn
carryon_forge_version = 2.1.2.7
Expand Down

0 comments on commit 40e9f05

Please sign in to comment.