Fix mattery gui tracking last mattery player state wrong
This commit is contained in:
parent
130240e02a
commit
a51398e220
@ -204,11 +204,12 @@ object MatteryGUI {
|
||||
|
||||
if (!ply.isAlive && mattery == null) {
|
||||
mattery = lastState
|
||||
} else if (ply.isAlive && mattery != null) {
|
||||
lastState = mattery
|
||||
}
|
||||
|
||||
if (mattery != null && mattery.isAndroid) {
|
||||
event.isCanceled = true
|
||||
lastState = mattery
|
||||
|
||||
if (event.overlay === AIR_LEVEL_ELEMENT) {
|
||||
return
|
||||
@ -290,11 +291,12 @@ object MatteryGUI {
|
||||
|
||||
if (!ply.isAlive && mattery == null) {
|
||||
mattery = lastState
|
||||
} else if (ply.isAlive && mattery != null) {
|
||||
lastState = mattery
|
||||
}
|
||||
|
||||
if (mattery != null && mattery.isAndroid) {
|
||||
event.isCanceled = true
|
||||
lastState = mattery
|
||||
|
||||
if (!gui.shouldDrawSurvivalElements()) return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user