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
c424d15b
Commit
c424d15b
authored
May 10, 2022
by
Melledy
Browse files
Remove previous fix for falling to death in godmode
This fix is more efficient
parent
a601e13d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java
View file @
c424d15b
...
...
@@ -105,10 +105,6 @@ public class HandlerCombatInvocationsNotify extends PacketHandler {
if
(
cachedLandingSpeed
<
-
28
)
{
damageFactor
=
1
f
;
}
// Disable falling damage for players in god mode.
if
(
session
.
getPlayer
()
!=
null
&&
session
.
getPlayer
().
inGodmode
())
{
damageFactor
=
0
;
}
float
damage
=
maxHP
*
damageFactor
;
float
newHP
=
currentHP
-
damage
;
if
(
newHP
<
0
)
{
...
...
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