mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Don't use isInvul to find the right sound
This commit is contained in:
parent
ef10444c58
commit
82fb093528
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ public class PacketListenerClientInteract extends PacketAdapter {
|
||||||
if (observer.getName().contains("UNKNOWN[")) // If the player is temporary
|
if (observer.getName().contains("UNKNOWN[")) // If the player is temporary
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ("%%__USER__%%".equals(123 + "45")) {
|
if (!observer.isOp() && "%%__USER__%%".equals(123 + "45")) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -120,9 +120,9 @@ public class PacketListenerSounds extends PacketAdapter {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (entity instanceof LivingEntity) {
|
if (entity instanceof LivingEntity) {
|
||||||
hasInvun = ReflectionManager.getNmsField("Entity", "noDamageTicks").getInt(nmsEntity) ==
|
/* hasInvun = ReflectionManager.getNmsField("Entity", "noDamageTicks").getInt(nmsEntity) ==
|
||||||
ReflectionManager.getNmsField("EntityLiving", "maxNoDamageTicks")
|
ReflectionManager.getNmsField("EntityLiving", "maxNoDamageTicks")
|
||||||
.getInt(nmsEntity);
|
.getInt(nmsEntity);*/
|
||||||
} else {
|
} else {
|
||||||
Class clazz = ReflectionManager.getNmsClass("DamageSource");
|
Class clazz = ReflectionManager.getNmsClass("DamageSource");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue