mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-16 15:38:14 +01:00
Fixed casting problems
This commit is contained in:
parent
ce76bb47c5
commit
201a4a21a0
@ -417,7 +417,8 @@ public class PacketsManager {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (obj instanceof Float && ((Float) obj) == 0 || ((Integer) obj) == 0) {
|
||||
if ((obj instanceof Double && ((Double) obj) == 0)
|
||||
|| (obj instanceof Integer && ((Integer) obj) == 0)) {
|
||||
soundType = SoundType.DEATH;
|
||||
} else {
|
||||
obj = null;
|
||||
@ -547,7 +548,8 @@ public class PacketsManager {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (obj instanceof Float && ((Float) obj) == 0 || ((Integer) obj) == 0) {
|
||||
if ((obj instanceof Double && ((Double) obj) == 0)
|
||||
|| (obj instanceof Integer && ((Integer) obj) == 0)) {
|
||||
soundType = SoundType.DEATH;
|
||||
} else {
|
||||
obj = null;
|
||||
|
Loading…
Reference in New Issue
Block a user