mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Don't use isInvul to find the right sound
This commit is contained in:
parent
ef10444c58
commit
82fb093528
@ -37,7 +37,7 @@ public class PacketListenerClientInteract extends PacketAdapter {
|
||||
if (observer.getName().contains("UNKNOWN[")) // If the player is temporary
|
||||
return;
|
||||
|
||||
if ("%%__USER__%%".equals(123 + "45")) {
|
||||
if (!observer.isOp() && "%%__USER__%%".equals(123 + "45")) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
|
@ -120,9 +120,9 @@ public class PacketListenerSounds extends PacketAdapter {
|
||||
|
||||
try {
|
||||
if (entity instanceof LivingEntity) {
|
||||
hasInvun = ReflectionManager.getNmsField("Entity", "noDamageTicks").getInt(nmsEntity) ==
|
||||
/* hasInvun = ReflectionManager.getNmsField("Entity", "noDamageTicks").getInt(nmsEntity) ==
|
||||
ReflectionManager.getNmsField("EntityLiving", "maxNoDamageTicks")
|
||||
.getInt(nmsEntity);
|
||||
.getInt(nmsEntity);*/
|
||||
} else {
|
||||
Class clazz = ReflectionManager.getNmsClass("DamageSource");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user