Skip to content

Commit

Permalink
Fixes samolego#95
Browse files Browse the repository at this point in the history
  • Loading branch information
samolego committed May 26, 2022
1 parent 8dbfe5a commit c2636d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1077,12 +1077,11 @@ public boolean isEquipmentEditor(@NotNull Player player) {
/**
* Handles interaction (right clicking on the NPC).
* @param player player interacting with NPC
* @param pos interaction pos
* @param hand player's interacting hand
* @return {@link InteractionResult#PASS} if NPC has a right click action, otherwise {@link InteractionResult#FAIL}
*/
@Override
public InteractionResult interactAt(Player player, Vec3 pos, InteractionHand hand) {
public InteractionResult mobInteract(Player player, InteractionHand hand) {
ITaterzenPlayer ipl = (ITaterzenPlayer) player;
long lastAction = ((ServerPlayer) player).getLastActionTime();

Expand All @@ -1094,7 +1093,7 @@ public InteractionResult interactAt(Player player, Vec3 pos, InteractionHand han


for(TaterzenProfession profession : this.professions.values()) {
InteractionResult professionResult = profession.interactAt(player, pos, hand);
InteractionResult professionResult = profession.interactAt(player, player.position(), hand);
if(professionResult != InteractionResult.PASS)
return professionResult;
}
Expand Down Expand Up @@ -1197,6 +1196,7 @@ else if(player.isShiftKeyDown()) {
return this.interact(player, hand);
}


/**
* Sets the cooldown message.
* @param message new cooldown message.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fabric_version=0.53.4+1.18.2
forge_version=40.0.19

# Mod Properties
mod_version = 1.9.3
mod_version = 1.9.4
maven_group = org.samo_lego
archives_base_name = taterzens

Expand Down

0 comments on commit c2636d3

Please sign in to comment.