Skip to content

Commit

Permalink
试图复活蟹钳
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuRuoLing committed Oct 3, 2024
1 parent 95cbac5 commit d039775
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package dev.dubhe.anvilcraft.event;

import dev.dubhe.anvilcraft.item.CrabClawItem;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.EventBusSubscriber;
import net.neoforged.neoforge.event.tick.PlayerTickEvent;

@EventBusSubscriber
public class PlayerTickEventHandler {

@SubscribeEvent
public static void onPlayerTick(PlayerTickEvent.Post event) {
CrabClawItem.holdingCrabClawIncreasesRange(event.getEntity());
}
}
2 changes: 1 addition & 1 deletion src/main/java/dev/dubhe/anvilcraft/item/CrabClawItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public CrabClawItem(Properties properties) {
}

/**
* 蟹钳增加交换距离
* 蟹钳增加交互距离
*/
public static void holdingCrabClawIncreasesRange(LivingEntity entity) {
if (!(entity instanceof Player player)) return;
Expand Down

0 comments on commit d039775

Please sign in to comment.