Skip to content

Commit 33ca044

Browse files
committed
Version 1.3.4
1 parent f6fa459 commit 33ca044

File tree

13 files changed

+71
-84
lines changed

13 files changed

+71
-84
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
===Version 1.3.4===
2+
-Fixed an issue causing recording corruption when recording item or entity with NBT data containing non-ASCII characters (thanks to INV-PLA for reporting).
3+
-Fixed missing translation key for copying and renaming a scene.
4+
15
===Version 1.3.3===
26
-Fixed a compatibility issue with JourneyMap (issue reported by seriousfreezing).
37

build.gradle

Lines changed: 52 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins
22
{
3-
id 'eclipse'
4-
id 'idea'
5-
id 'maven-publish'
6-
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
3+
id 'eclipse'
4+
id 'idea'
5+
id 'maven-publish'
6+
id 'net.minecraftforge.gradle' version '[6.0.16,6.2)'
77
id 'org.spongepowered.mixin' version '0.7.+'
88
}
99

@@ -20,47 +20,29 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(17)
2020
println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"
2121
minecraft
2222
{
23-
mappings channel: mapping_channel, version: mapping_version
24-
copyIdeResources = true
23+
mappings channel: mapping_channel, version: mapping_version
24+
copyIdeResources = true
2525

26-
runs
26+
runs
2727
{
28-
client
28+
configureEach
2929
{
30-
workingDirectory project.file('run')
31-
32-
property 'forge.logging.markers', 'REGISTRIES'
33-
property 'forge.logging.console.level', 'debug'
34-
property 'forge.enabledGameTestNamespaces', mod_id
35-
36-
mods
37-
{
38-
"${mod_id}" { source sourceSets.main }
39-
}
40-
}
41-
42-
server
43-
{
44-
workingDirectory project.file('run')
45-
46-
property 'forge.logging.markers', 'REGISTRIES'
47-
property 'forge.logging.console.level', 'debug'
48-
property 'forge.enabledGameTestNamespaces', mod_id
49-
50-
mods
51-
{
52-
"${mod_id}" { source sourceSets.main }
53-
}
54-
}
55-
}
30+
workingDirectory project.file('run')
31+
property 'forge.logging.markers', 'REGISTRIES'
32+
property 'forge.logging.console.level', 'debug'
33+
}
34+
35+
client { property 'forge.enabledGameTestNamespaces', mod_id }
36+
server { property 'forge.enabledGameTestNamespaces', mod_id }
37+
}
5638
}
5739

5840
sourceSets.main.resources { srcDir 'src/generated/resources' }
5941

6042
dependencies
6143
{
62-
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
63-
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
44+
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
45+
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
6446
}
6547

6648
mixin
@@ -69,41 +51,46 @@ mixin
6951
config "mixins.${mod_id}.json"
7052
}
7153

72-
def resourceTargets = ['META-INF/mods.toml', 'pack.mcmeta']
73-
def replaceProperties =
74-
[
75-
minecraft_version: minecraft_version, minecraft_version_range: minecraft_version_range,
76-
forge_version: forge_version, forge_version_range: forge_version_range,
77-
loader_version_range: loader_version_range,
78-
mod_id: mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version,
79-
mod_authors: mod_authors, mod_description: mod_description,
80-
mod_url: mod_url, mod_issues: mod_issues, mod_credits: mod_credits
81-
]
82-
83-
processResources
54+
tasks.named('processResources', ProcessResources).configure
8455
{
85-
inputs.properties replaceProperties
86-
replaceProperties.put 'project', project
56+
var replaceProperties =
57+
[
58+
minecraft_version: minecraft_version, minecraft_version_range: minecraft_version_range,
59+
forge_version: forge_version, forge_version_range: forge_version_range,
60+
loader_version_range: loader_version_range,
61+
mod_id: mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version,
62+
mod_authors: mod_authors, mod_description: mod_description,
63+
mod_url: mod_url, mod_issues: mod_issues, mod_credits: mod_credits
64+
]
65+
inputs.properties replaceProperties
8766

88-
filesMatching(resourceTargets) { expand replaceProperties }
67+
filesMatching(['META-INF/mods.toml', 'pack.mcmeta']) { expand replaceProperties + [project: project] }
8968
}
9069

91-
jar
70+
tasks.named('jar', Jar).configure
9271
{
93-
manifest
72+
manifest
9473
{
95-
attributes([
96-
"Specification-Title" : mod_id,
97-
"Specification-Vendor" : mod_authors,
98-
"Specification-Version" : "1",
99-
"Implementation-Title" : project.name,
100-
"Implementation-Version" : project.jar.archiveVersion,
101-
"Implementation-Vendor" : mod_authors,
102-
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
103-
])
104-
}
74+
attributes([
75+
'Specification-Title' : mod_id,
76+
'Specification-Vendor' : mod_authors,
77+
'Specification-Version' : '1',
78+
'Implementation-Title' : project.name,
79+
'Implementation-Version' : project.jar.archiveVersion,
80+
'Implementation-Vendor' : mod_authors
81+
])
82+
}
83+
84+
finalizedBy 'reobfJar'
10585
}
10686

107-
jar.finalizedBy('reobfJar')
108-
10987
tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' }
88+
89+
eclipse { synchronizationTasks 'genEclipseRuns' }
90+
91+
sourceSets.each
92+
{
93+
def dir = layout.buildDirectory.dir("sourcesSets/$it.name")
94+
it.output.resourcesDir = dir
95+
it.java.destinationDirectory = dir
96+
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
22
org.gradle.daemon=false
33

44
minecraft_version=1.20.2
5-
forge_version=48.0.13
5+
forge_version=48.1.0
66

77
minecraft_version_range=[1.20.2,1.20.3)
88
forge_version_range=[48,)
@@ -14,7 +14,7 @@ mapping_version=1.20.2
1414

1515
## Mod Properties
1616
mod_id=mocap
17-
mod_version=1.3.3
17+
mod_version=1.3.4
1818

1919
mod_group_id=com.mt1006.mocap
2020
mod_jar_name=Mocap

gradle/wrapper/gradle-wrapper.jar

502 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

gradlew

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ done
8585
APP_BASE_NAME=${0##*/}
8686
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90-
9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
9390

@@ -144,15 +141,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144141
case $MAX_FD in #(
145142
max*)
146143
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
144+
# shellcheck disable=SC3045
148145
MAX_FD=$( ulimit -H -n ) ||
149146
warn "Could not query maximum file descriptor limit"
150147
esac
151148
case $MAX_FD in #(
152149
'' | soft) :;; #(
153150
*)
154151
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
152+
# shellcheck disable=SC3045
156153
ulimit -n "$MAX_FD" ||
157154
warn "Could not set maximum file descriptor limit to $MAX_FD"
158155
esac
@@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then
197194
done
198195
fi
199196

197+
198+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
199+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
200+
200201
# Collect all arguments for the java command;
201202
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202203
# shell script including quotes and variable substitutions, so put them in

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ pluginManagement
1313

1414
plugins
1515
{
16-
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
16+
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
1717
}

src/main/java/com/mt1006/mocap/MocapMod.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
@Mod.EventBusSubscriber(modid = MocapMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
1616
public class MocapMod
1717
{
18-
//TODO: add translation key for copying scene
1918
public static final String MOD_ID = "mocap";
20-
public static final String VERSION = "1.3.3";
19+
public static final String VERSION = "1.3.4";
2120
public static final String FOR_VERSION = "1.20.2";
2221
public static final String FOR_LOADER = "Forge";
2322
public static final Logger LOGGER = LogManager.getLogger();

src/main/java/com/mt1006/mocap/mocap/files/SceneFiles.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ public static boolean copy(CommandInfo commandInfo, String srcName, String destN
6161
try { FileUtils.copyFile(srcFile, destFile); }
6262
catch (IOException exception)
6363
{
64-
commandInfo.sendException(exception, "mocap.scene.copy.failed");
64+
commandInfo.sendException(exception, "mocap.scenes.copy.failed");
6565
return false;
6666
}
6767

6868
InputArgument.addServerInput(nameWithDot(destName));
69-
commandInfo.sendSuccess("mocap.scene.copy.success");
69+
commandInfo.sendSuccess("mocap.scenes.copy.success");
7070
return true;
7171
}
7272

@@ -80,13 +80,13 @@ public static boolean rename(CommandInfo commandInfo, String oldName, String new
8080

8181
if (!oldFile.renameTo(newFile))
8282
{
83-
commandInfo.sendFailure("mocap.scene.rename.failed");
83+
commandInfo.sendFailure("mocap.scenes.rename.failed");
8484
return false;
8585
}
8686

8787
InputArgument.removeServerInput(nameWithDot(oldName));
8888
InputArgument.addServerInput(nameWithDot(newName));
89-
commandInfo.sendSuccess("mocap.scene.rename.success");
89+
commandInfo.sendSuccess("mocap.scenes.rename.success");
9090
return true;
9191
}
9292

src/main/java/com/mt1006/mocap/network/MocapPacketC2S.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import net.minecraftforge.event.network.CustomPayloadEvent;
99
import net.minecraftforge.network.PacketDistributor;
1010

11-
import java.util.function.Supplier;
12-
1311
public class MocapPacketC2S
1412
{
1513
public static final int ACCEPT_SERVER = 0;

0 commit comments

Comments
 (0)