We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97cc112 commit 3844279Copy full SHA for 3844279
src/main/java/me/zombie_striker/qg/listener/QAListener.java
@@ -248,6 +248,12 @@ public void oninvClick(final InventoryClickEvent e) {
248
// restore placed item because cancelling an event seems to wipe it.
249
// it will make cursor item look disappeared, but it'll be dropped when inventory is closed
250
e.getView().setCursor(cursor);
251
+ } else {
252
+ ItemStack item = e.getCurrentItem();
253
+
254
+ if (e.getSlot() == OFFHAND_SLOT && QualityArmory.isGun(item)) {
255
+ e.setCancelled(true);
256
+ }
257
}
258
259
src/main/resources/changelog.txt
@@ -1,3 +1,7 @@
1
+2.0.17
2
+ - 1.21.4 support
3
+ - Fixed gun duplication
4
5
2.0.16
6
- Fixed invalid air drop
7
- 1.21.3 support
0 commit comments