Skip to content

Commit 7178605

Browse files
committed
Small changes.
1 parent b03a819 commit 7178605

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

build.gradle

+19-17
Original file line numberDiff line numberDiff line change
@@ -184,23 +184,25 @@ publishing {
184184
}
185185
}
186186

187-
modrinth {
188-
token = modrinthToken
189-
projectId = "halplibe" // This can be the project ID or the slug. Either will work!
190-
versionName = "HalpLibe ${project.mod_version}"
191-
versionNumber = project.mod_version // You don't need to set this manually. Will fail if Modrinth has this version already
192-
versionType = "release" // This is the default -- can also be `beta` or `alpha`
193-
uploadFile = remapJar // With Loom, this MUST be set to `remapJar` instead of `jar`!
194-
additionalFiles = [remapSourcesJar]
195-
gameVersions = ["b1.7.3"] // Must be an array, even with only one version
196-
loaders = ["fabric"] // Must also be an array - no need to specify this if you're using Loom or ForgeGradle
197-
changelog = Files.readString(java.nio.file.Path.of("${rootProject.projectDir}/CHANGELOG.md"))
198-
dependencies { // A special DSL for creating dependencies
199-
// scope.type
200-
// The scope can be `required`, `optional`, `incompatible`, or `embedded`
201-
// The type can either be `project` or `version`
202-
//required.project "fabric-api" // Creates a new required dependency on Fabric API
203-
//optional.version "sodium", "mc1.19.3-0.4.8" // Creates a new optional dependency on this specific version of Sodium
187+
if(hasProperty("modrinthToken")) {
188+
modrinth {
189+
token = modrinthToken
190+
projectId = "halplibe" // This can be the project ID or the slug. Either will work!
191+
versionName = "HalpLibe ${project.mod_version}"
192+
versionNumber = project.mod_version // You don't need to set this manually. Will fail if Modrinth has this version already
193+
versionType = "release" // This is the default -- can also be `beta` or `alpha`
194+
uploadFile = remapJar // With Loom, this MUST be set to `remapJar` instead of `jar`!
195+
additionalFiles = [remapSourcesJar]
196+
gameVersions = ["b1.7.3"] // Must be an array, even with only one version
197+
loaders = ["fabric"] // Must also be an array - no need to specify this if you're using Loom or ForgeGradle
198+
changelog = Files.readString(java.nio.file.Path.of("${rootProject.projectDir}/CHANGELOG.md"))
199+
dependencies { // A special DSL for creating dependencies
200+
// scope.type
201+
// The scope can be `required`, `optional`, `incompatible`, or `embedded`
202+
// The type can either be `project` or `version`
203+
//required.project "fabric-api" // Creates a new required dependency on Fabric API
204+
//optional.version "sodium", "mc1.19.3-0.4.8" // Creates a new optional dependency on this specific version of Sodium
205+
}
204206
}
205207
}
206208

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ loader_version=0.15.6-bta.7
1111
mod_menu_version=3.0.0
1212

1313
# Mod
14-
mod_version=5.2.0
14+
mod_version=5.2.1
1515
mod_group=turniplabs
1616
mod_name=halplibe

src/main/java/turniplabs/halplibe/mixin/models/EntityRenderDispatcherMixin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public abstract class EntityRenderDispatcherMixin {
2727
@Unique
2828
private final EntityRenderDispatcher thisAs = (EntityRenderDispatcher) (Object) this;
2929

30-
@Inject(method = "<init>()V", at = @At("TAIL"))
30+
@Inject(method = "<init>()V", at = @At(value = "INVOKE", target = "Ljava/util/Map;values()Ljava/util/Collection;", shift = At.Shift.BEFORE))
3131
private void addQueuedModels(CallbackInfo ci){
3232
ModelHelper.entityRenderers = renderers;
3333
ModelHelper.entityRenderDispatcher = thisAs;

src/main/java/turniplabs/halplibe/mixin/models/TileEntityRendererDispatcherMixin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class TileEntityRendererDispatcherMixin {
2323
@Unique
2424
private final TileEntityRenderDispatcher thisAs = (TileEntityRenderDispatcher) (Object) this;
2525

26-
@Inject(method = "<init>()V", at = @At("TAIL"))
26+
@Inject(method = "<init>()V", at = @At(value = "INVOKE", target = "Ljava/util/Map;values()Ljava/util/Collection;", shift = At.Shift.BEFORE))
2727
private void addQueuedModels(CallbackInfo ci){
2828
ModelHelper.tileEntityRenderers = renderers;
2929
ModelHelper.tileEntityRenderDispatcher = thisAs;

0 commit comments

Comments
 (0)