mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 03:30:10 +00:00
Fix NPE onPlayerLogin
This commit is contained in:
parent
9d5cc87f14
commit
460f8179d2
3 changed files with 11 additions and 4 deletions
Binary file not shown.
|
@ -169,9 +169,16 @@ public class Methods {
|
|||
if (slot8 != null) abilities.put(8, slot8);
|
||||
if (slot9 != null) abilities.put(9, slot9);
|
||||
|
||||
if (permaremoved == null) p = false;
|
||||
if (permaremoved.equals("true")) p = true;
|
||||
if (permaremoved.equals("false")) p = false;
|
||||
if (permaremoved == null) {
|
||||
p = false;
|
||||
}
|
||||
else if (permaremoved.equals("true")) {
|
||||
p = true;
|
||||
}
|
||||
else if (permaremoved.equals("false")) {
|
||||
p = false;
|
||||
}
|
||||
|
||||
new BendingPlayer(uuid, player2, elements, abilities, p);
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: ProjectKorra
|
||||
author: ProjectKorra
|
||||
version: 1.1.0 BETA 13
|
||||
version: 1.1.0 BETA 14
|
||||
main: com.projectkorra.ProjectKorra.ProjectKorra
|
||||
commands:
|
||||
projectkorra:
|
||||
|
|
Loading…
Reference in a new issue