更新版本为1.0.5-fix

Forge最低版本可以为47.3.5
This commit is contained in:
叁玖领域 2025-06-06 20:23:09 +08:00
parent c2140c0e55
commit 6f412fcb35
5 changed files with 9 additions and 8 deletions

View File

@ -7,7 +7,7 @@ minecraft_version=1.20.1
# as they do not follow standard versioning conventions.
minecraft_version_range=[1.20.1,1.21)
# The Forge version must agree with the Minecraft version to get a valid artifact
forge_version=47.4.1
forge_version=47.3.5
# The Forge version range can use any version of Forge as bounds or match the loader version range
forge_version_range=[47,)
# The loader version range can only use the major version of Forge/FML as bounds
@ -38,8 +38,8 @@ mod_name=BlastTravel-Reborn
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.0.5+1.20.1-forge
jsonem_version=0.2.1+1.20-fabrge
mod_version=1.0.5+1.20.1-forge-fix
jsonem_version=0.2.2+1.20-fabrge
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

View File

@ -15,7 +15,8 @@ import org.slf4j.LoggerFactory;
public class BlastTravelReborn {
public static final String MOD_ID = "blasttravelreborn";
public static final Logger LOG = LoggerFactory.getLogger("Blast Travel Reborn");
public BlastTravelReborn(FMLJavaModLoadingContext fmlJavaModLoadingContext) {
public BlastTravelReborn() {
FMLJavaModLoadingContext fmlJavaModLoadingContext = FMLJavaModLoadingContext.get();
IEventBus modEventBus = fmlJavaModLoadingContext.getModEventBus();
BTRNetwork.register();
BTRItems.register(modEventBus);
@ -25,6 +26,6 @@ public class BlastTravelReborn {
}
public static ResourceLocation id(String path) {
return ResourceLocation.fromNamespaceAndPath(MOD_ID, path);
return new ResourceLocation(MOD_ID, path);
}
}

View File

@ -16,7 +16,7 @@ public class BTREntityTypes {
"cannon",
() -> EntityType.Builder.<CannonEntity>of(CannonEntity::new, MobCategory.MISC)
.sized(1, 0.8f)
.build((ResourceLocation.fromNamespaceAndPath(BlastTravelReborn.MOD_ID, "cannon")).toString()
.build((BlastTravelReborn.id("cannon")).toString()
));
public static void register(IEventBus eventBus) {
ENTITY_TYPES.register(eventBus);

View File

@ -90,7 +90,7 @@ public class CannonBehavior {
public ResourceLocation headTexture(CannonEntity entity) {
var player = entity.getClientPlayer();
if (player == null) {
return ResourceLocation.withDefaultNamespace("missing");
return new ResourceLocation("missing");
}
return player.getSkinTextureLocation();

View File

@ -11,7 +11,7 @@ loaderVersion = "${loader_version_range}" #mandatory This is typically bumped ev
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
license = "${mod_license}"
# A URL to refer people to when problems occur with this mod
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
issueTrackerURL="https://github.com/LeisureTimeDock/BlastTravel_Neo_Forge" #optional
# A list of mods - how many allowed here is determined by the individual mod loader
[[mods]] #mandatory
# The modid of the mod