Skip to content

Commit 34e8fee

Browse files
committed
make it backwards comaptible
1 parent 1c88ad3 commit 34e8fee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/AltV.Net/Core.Events.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public virtual void OnWeaponDamageEvent(IntPtr eventPointer, IPlayer sourcePlaye
519519
{
520520
var result = @delegate(sourcePlayer, targetEntity, weapon, damage, shotOffset, bodyPart);
521521

522-
if (result.Cancel)
522+
if (!result.notCancel)
523523
{
524524
cancel = true;
525525
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace AltV.Net.Data;
22

3-
public record WeaponDamageResponse(bool Cancel, uint? Damage) {
3+
public record WeaponDamageResponse(bool notCancel, uint? Damage) {
44
public static implicit operator WeaponDamageResponse(bool val) => new WeaponDamageResponse(val, null);
55
public static implicit operator WeaponDamageResponse(uint val) => new WeaponDamageResponse(false, val);
66
};

0 commit comments

Comments
 (0)