Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
MythicCraft
MythicCosmetics
Commits
eeb9e989
Commit
eeb9e989
authored
2 years ago
by
ben9964
Browse files
Options
Download
Email Patches
Plain Diff
Use correct 1.19.3 nms version
parent
ad82d280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
plugin/src/main/java/io/lumine/cosmetics/MCCosmeticsPlugin.java
.../src/main/java/io/lumine/cosmetics/MCCosmeticsPlugin.java
+7
-2
No files found.
plugin/src/main/java/io/lumine/cosmetics/MCCosmeticsPlugin.java
View file @
eeb9e989
...
...
@@ -218,9 +218,14 @@ public class MCCosmeticsPlugin extends LuminePlugin {
String
packageName
=
Bukkit
.
getServer
().
getClass
().
getPackage
().
getName
();
String
version
=
packageName
.
substring
(
packageName
.
lastIndexOf
(
'.'
)
+
1
);
if
(
version
.
startsWith
(
"v1_19"
)
&&
!
"1.19-R0.1-SNAPSHOT"
.
equals
(
Bukkit
.
getBukkitVersion
()))
{
version
=
"v1_19_R1_2"
;
if
(
version
.
startsWith
(
"v1_19"
)){
if
(
"1.19.2-R0.1-SNAPSHOT"
.
equals
(
Bukkit
.
getBukkitVersion
()))
{
version
=
"v1_19_R1_2"
;
}
else
if
(
"1.19.3-R0.1-SNAPSHOT"
.
equals
(
Bukkit
.
getBukkitVersion
())){
version
=
"v1_19_R2"
;
}
}
try
{
final
Class
<?>
clazz
=
Class
.
forName
(
"io.lumine.cosmetics.nms.VolatileCodeEnabled_"
+
version
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment