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
|
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 New Issue
Block a user