Skip to content

Commit 4216bf0

Browse files
committed
Fixed gun protection
Closes #555
1 parent 3844279 commit 4216bf0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>me.zombie_striker</groupId>
77
<artifactId>QualityArmory</artifactId>
8-
<version>2.0.17-SNAPSHOT</version>
8+
<version>2.0.17</version>
99
<name>QualityArmory</name>
1010

1111
<properties>

src/main/java/me/zombie_striker/qg/guns/utils/GunUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public static void shootInstantVector(Gun g, Player p, double sway, double damag
177177

178178

179179
if (hitTarget != null) {
180-
if (!(hitTarget instanceof Player) || QualityArmory.allowGunsInRegion(hitTarget.getLocation())) {
180+
if (QualityArmory.allowGunsInRegion(hitTarget.getLocation())) {
181181

182182
boolean headshot = hitBox.allowsHeadshots() && hitBox.intersectsHead(bulletHitLoc, hitTarget);
183183
if (headshot) {

src/main/resources/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
2.0.17
22
- 1.21.4 support
33
- Fixed gun duplication
4+
- Fixed gun protection
45

56
2.0.16
67
- Fixed invalid air drop

0 commit comments

Comments
 (0)