Change the casting checking to look better
This commit is contained in:
@@ -417,8 +417,7 @@ public class PacketsManager {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if ((obj instanceof Double && ((Double) obj) == 0)
|
if (obj instanceof Double ? (Double) obj == 0 : (Integer) obj == 0) {
|
||||||
|| (obj instanceof Integer && ((Integer) obj) == 0)) {
|
|
||||||
soundType = SoundType.DEATH;
|
soundType = SoundType.DEATH;
|
||||||
} else {
|
} else {
|
||||||
obj = null;
|
obj = null;
|
||||||
@@ -548,8 +547,7 @@ public class PacketsManager {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if ((obj instanceof Double && ((Double) obj) == 0)
|
if (obj instanceof Double ? (Double) obj == 0 : (Integer) obj == 0) {
|
||||||
|| (obj instanceof Integer && ((Integer) obj) == 0)) {
|
|
||||||
soundType = SoundType.DEATH;
|
soundType = SoundType.DEATH;
|
||||||
} else {
|
} else {
|
||||||
obj = null;
|
obj = null;
|
||||||
|
Reference in New Issue
Block a user