Skip to content

Commit

Permalink
Fixed gun protection
Browse files Browse the repository at this point in the history
Closes #555
  • Loading branch information
Lorenzo0111 committed Dec 23, 2024
1 parent 3844279 commit 4216bf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.zombie_striker</groupId>
<artifactId>QualityArmory</artifactId>
<version>2.0.17-SNAPSHOT</version>
<version>2.0.17</version>
<name>QualityArmory</name>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/zombie_striker/qg/guns/utils/GunUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static void shootInstantVector(Gun g, Player p, double sway, double damag


if (hitTarget != null) {
if (!(hitTarget instanceof Player) || QualityArmory.allowGunsInRegion(hitTarget.getLocation())) {
if (QualityArmory.allowGunsInRegion(hitTarget.getLocation())) {

boolean headshot = hitBox.allowsHeadshots() && hitBox.intersectsHead(bulletHitLoc, hitTarget);
if (headshot) {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
2.0.17
- 1.21.4 support
- Fixed gun duplication
- Fixed gun protection

2.0.16
- Fixed invalid air drop
Expand Down

0 comments on commit 4216bf0

Please sign in to comment.