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
cab9de95
Commit
cab9de95
authored
2 years ago
by
Ashijin
Browse files
Options
Download
Email Patches
Plain Diff
Fixed several NPEs
parent
85e16907
master
Terminated/dev
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
plugin/src/main/java/io/lumine/cosmetics/managers/back/BackManager.java
...n/java/io/lumine/cosmetics/managers/back/BackManager.java
+2
-2
plugin/src/main/java/io/lumine/cosmetics/managers/modelengine/MEGManager.java
.../io/lumine/cosmetics/managers/modelengine/MEGManager.java
+2
-2
No files found.
plugin/src/main/java/io/lumine/cosmetics/managers/back/BackManager.java
View file @
cab9de95
...
...
@@ -36,7 +36,7 @@ public class BackManager extends MCCosmeticsManager<BackAccessory> implements Hi
final
var
player
=
event
.
getPlayer
();
final
var
profile
=
plugin
.
getProfiles
().
getProfile
(
player
);
if
(
profile
.
getEquipped
(
BackAccessory
.
class
).
isPresent
())
{
if
(
profile
!=
null
&&
profile
.
getEquipped
(
BackAccessory
.
class
).
isPresent
())
{
unequip
(
profile
);
Schedulers
.
sync
().
runLater
(()
->
{
...
...
@@ -51,7 +51,7 @@ public class BackManager extends MCCosmeticsManager<BackAccessory> implements Hi
final
var
player
=
event
.
getPlayer
();
final
var
profile
=
plugin
.
getProfiles
().
getProfile
(
player
);
if
(
profile
.
getEquipped
(
BackAccessory
.
class
).
isPresent
())
{
if
(
profile
!=
null
&&
profile
.
getEquipped
(
BackAccessory
.
class
).
isPresent
())
{
unequip
(
profile
);
Schedulers
.
sync
().
runLater
(()
->
{
...
...
This diff is collapsed.
Click to expand it.
plugin/src/main/java/io/lumine/cosmetics/managers/modelengine/MEGManager.java
View file @
cab9de95
...
...
@@ -42,7 +42,7 @@ public class MEGManager extends MCCosmeticsManager<MEGAccessory> {
final
var
player
=
event
.
getEntity
();
final
var
profile
=
plugin
.
getProfiles
().
getProfile
(
player
);
if
(
profile
.
getEquipped
(
MEGAccessory
.
class
).
isPresent
())
{
if
(
profile
!=
null
&&
profile
.
getEquipped
(
MEGAccessory
.
class
).
isPresent
())
{
unequip
(
profile
);
}
})
...
...
@@ -54,7 +54,7 @@ public class MEGManager extends MCCosmeticsManager<MEGAccessory> {
final
var
profile
=
plugin
.
getProfiles
().
getProfile
(
player
);
Schedulers
.
sync
().
runLater
(()
->
{
if
(
profile
.
getEquipped
(
MEGAccessory
.
class
).
isPresent
())
{
if
(
profile
!=
null
&&
profile
.
getEquipped
(
MEGAccessory
.
class
).
isPresent
())
{
equip
(
profile
);
}
},
5
);
...
...
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