Update PlatformManager.java

This commit is contained in:
Jesse Boyd 2019-07-29 05:27:50 +10:00
parent 1c256c1f5a
commit 02d5f3e8d5
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -333,7 +333,7 @@ public class PlatformManager {
case HIT: {
// superpickaxe is special because its primary interaction is a left click, not a right click
// in addition, it is implicitly bound to all pickaxe items, not just a single tool item
if (session.hasSuperPickAxe() && player.isHoldingPickAxe()) {
if (session.hasSuperPickAxe()) {
final BlockTool superPickaxe = session.getSuperPickaxe();
if (superPickaxe != null && superPickaxe.canUse(player) && player.isHoldingPickAxe()) {
FawePlayer<?> fp = FawePlayer.wrap(player);