mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +00:00
Change the casting checking to look better
This commit is contained in:
parent
3f2c6b60d0
commit
6b225f18c3
1 changed files with 2 additions and 4 deletions
|
@ -417,8 +417,7 @@ public class PacketsManager {
|
|||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if ((obj instanceof Double && ((Double) obj) == 0)
|
||||
|| (obj instanceof Integer && ((Integer) obj) == 0)) {
|
||||
if (obj instanceof Double ? (Double) obj == 0 : (Integer) obj == 0) {
|
||||
soundType = SoundType.DEATH;
|
||||
} else {
|
||||
obj = null;
|
||||
|
@ -548,8 +547,7 @@ public class PacketsManager {
|
|||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if ((obj instanceof Double && ((Double) obj) == 0)
|
||||
|| (obj instanceof Integer && ((Integer) obj) == 0)) {
|
||||
if (obj instanceof Double ? (Double) obj == 0 : (Integer) obj == 0) {
|
||||
soundType = SoundType.DEATH;
|
||||
} else {
|
||||
obj = null;
|
||||
|
|
Loading…
Reference in a new issue