Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
8b5d7855
Commit
8b5d7855
authored
Apr 21, 2022
by
Melledy
Committed by
GitHub
Apr 21, 2022
Browse files
Merge pull request #92 from Grasscutters/account-fix
Fixes for the error in the revive command
parents
db1c4cd4
04791b68
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/Grasscutter.java
View file @
8b5d7855
...
...
@@ -86,8 +86,10 @@ public final class Grasscutter {
public
static
void
loadConfig
()
{
try
(
FileReader
file
=
new
FileReader
(
configFile
))
{
config
=
gson
.
fromJson
(
file
,
Config
.
class
);
saveConfig
();
}
catch
(
Exception
e
)
{
Grasscutter
.
config
=
new
Config
();
saveConfig
();
Grasscutter
.
config
=
new
Config
();
saveConfig
();
}
}
...
...
src/main/java/emu/grasscutter/command/commands/Revive.java
→
src/main/java/emu/grasscutter/command/commands/Revive
Command
.java
View file @
8b5d7855
...
...
@@ -15,12 +15,12 @@ import java.util.List;
@Command
(
label
=
"revive"
,
aliases
=
{
"rev"
},
usage
=
"revive|rev"
,
description
=
"Revive character(s) that died)"
)
public
class
Revive
implements
CommandHandler
{
public
class
Revive
Command
implements
CommandHandler
{
//private Object teamId;
@Override
public
void
execute
(
GenshinPlayer
player
,
List
<
String
>
args
)
{
for
(
EntityAvatar
entity2
:
TeamManager
.
getActiveTeam
())
{
for
(
EntityAvatar
entity2
:
player
.
get
TeamManager
()
.
getActiveTeam
())
{
entity2
.
setFightProperty
(
FightProperty
.
FIGHT_PROP_CUR_HP
,
entity2
.
getFightProperty
(
FightProperty
.
FIGHT_PROP_MAX_HP
)
*
.
4
f
...
...
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