Skip to content

Commit

Permalink
PC端键鼠不允许叠刀
Browse files Browse the repository at this point in the history
  • Loading branch information
boybook committed Jan 22, 2024
1 parent b74fa89 commit 4bf8728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -4818,7 +4818,7 @@ public boolean attack(EntityDamageEvent source) {

//Critical hit

if (!damager.onGround && damager instanceof Player) {
if (!damager.onGround && damager instanceof Player && ((Player) damager).getLoginChainData().getCurrentInputMode() != ClientChainData.INPUT_MOUSE) {
if (((Player) damager).speed != null && ((Player) damager).speed.y > 0) {
//((Player) damager).sendMessage("speed = " + ((Player) damager).speed.y);
if (((Player) damager).attackCriticalThisJump <= 0) add = true;
Expand Down

0 comments on commit 4bf8728

Please sign in to comment.