Browse Source

Attempt at patch for build issue.

master
Stefatorus 4 years ago
parent
commit
b91e08acbf
  1. 3
      ERCoupons/src/com/entryrise/coupons/listeners/CouponListener.java

3
ERCoupons/src/com/entryrise/coupons/listeners/CouponListener.java

@ -21,8 +21,7 @@ public class CouponListener implements Listener {
public void onCouponInteract(PlayerInteractEvent e) { public void onCouponInteract(PlayerInteractEvent e) {
final Player p = e.getPlayer(); final Player p = e.getPlayer();
final ItemStack itm = e.getItem(); final ItemStack itm = e.getItem();
if (e.getAction().toString().contains("RIGHT_CLICK")) {
e.setCancelled(true);
if (!e.getAction().toString().contains("RIGHT_CLICK")) {
return; return;
} }
Data.couponAction(p, itm, true); Data.couponAction(p, itm, true);

Loading…
Cancel
Save