Skip to content

Commit 08f3b83

Browse files
committed
fix releaseTarget
1 parent a5e693c commit 08f3b83

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
## Changelog
2-
- try fix #4
2+
- fix `releaseTarget`

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ repositories {
2828
name = 'ParchmentMC'
2929
url = 'https://maven.parchmentmc.org'
3030
}
31+
maven {
32+
url "https://maven2.bai.lol"
33+
content {
34+
includeGroup "lol.bai"
35+
}
36+
}
3137
}
3238

3339
dependencies {
@@ -39,6 +45,8 @@ dependencies {
3945
}
4046
neoForge "net.neoforged:neoforge:${project.neoforge_version}"
4147

48+
modImplementation "lol.bai:badpackets:neo-0.8.2"
49+
4250
compileOnly "com.google.code.findbugs:jsr305:${project.jsr305_version}"
4351
}
4452

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ loom.platform = neoforge
44

55
# Mod Properties
66
minecraft_version=1.21.4
7-
neoforge_version=21.4.78-beta
7+
neoforge_version=21.4.112-beta
88
jsr305_version=3.0.2
99
parchment_mappings=2025.01.19
1010

1111
# Mod Properties
1212
upstream_version = 1.4.147
13-
mod_version = 0.1.3
13+
mod_version = 0.1.4
1414
maven_group = org.thinkingstudio.bedsheet
1515
archives_base_name = bedsheet
1616

src/main/java/carpet/CarpetSettings.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import carpet.utils.Translations;
1010
import carpet.utils.CommandHelper;
1111
import carpet.utils.Messenger;
12-
//import net.fabricmc.loader.api.FabricLoader;
13-
//import net.fabricmc.loader.api.SemanticVersion;
1412
import net.minecraft.commands.CommandSourceStack;
1513
import net.minecraft.core.registries.Registries;
1614
import net.minecraft.resources.ResourceLocation;
@@ -52,7 +50,7 @@ public class CarpetSettings
5250
{
5351
public static final String carpetVersion = NeoHooks.getModContainer(BedSheetModReference.MODID).orElseThrow().getModInfo().getVersion().toString();
5452
public static final int [] releaseTarget = {
55-
NeoHooks.getModContainer("minecraft").orElseThrow().getModInfo().getVersion().getMajorVersion(),
53+
NeoHooks.getModContainer("minecraft").orElseThrow().getModInfo().getVersion().getMinorVersion(),
5654
NeoHooks.getModContainer("minecraft").orElseThrow().getModInfo().getVersion().getIncrementalVersion()
5755
};
5856
public static final Logger LOG = LoggerFactory.getLogger(BedSheetModReference.MODNAME);

src/main/java/org/thinkingstudio/bedsheet/BedSheetModReference.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package org.thinkingstudio.bedsheet;
22

33
import net.minecraft.resources.ResourceLocation;
4-
import org.slf4j.Logger;
5-
import org.slf4j.LoggerFactory;
64

75
public class BedSheetModReference {
86
public static final String MODID = "bedsheet";
97
public static final String MODNAME = "BedSheet";
10-
public static final Logger LOGGER = LoggerFactory.getLogger(MODNAME);
8+
119
public static ResourceLocation getId(String key) {
1210
return ResourceLocation.fromNamespaceAndPath(MODID, key);
1311
}

src/main/resources/META-INF/neoforge.mods.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ description = '''
1414
Carpet unofficial NeoForge port.
1515
'''
1616
logoFile = "icon.png"
17+
displayTest = "IGNORE_SERVER_VERSION"
1718

1819
[[dependencies.bedsheet]]
1920
modId = "neoforge"

0 commit comments

Comments
 (0)