Skip to content

Commit

Permalink
[~] Version change + pick up fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crispytwig committed Feb 19, 2024
1 parent 549f87e commit a27b5ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ geckolib_version=4.2.4
mod_menu_version=7.2.2

# Mod Properties
mod_version=1.0.2-fabric
mod_version=fabric-1.0.3-1.20.1
maven_group=com.starfish_studios
archives_base_name=hamsters

Expand Down
12 changes: 5 additions & 7 deletions src/main/java/com/starfish_studios/hamsters/entity/Hamster.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,11 @@ public InteractionResult mobInteract(Player player, InteractionHand interactionH
} else {
InteractionResult interactionResult;
if (this.isTame()) {
if (this.isOwnedBy(player)) {
if (this.getHealth() < this.getMaxHealth()) {
this.usePlayerItem(player, interactionHand, itemStack);
this.heal(2.0F);
return InteractionResult.CONSUME;
}

if (this.isOwnedBy(player) && this.isFood(itemStack) && (this.getHealth() < this.getMaxHealth())) {
this.usePlayerItem(player, interactionHand, itemStack);
this.heal(2.0F);
return InteractionResult.CONSUME;
} else if (this.isOwnedBy(player)) {
interactionResult = super.mobInteract(player, interactionHand);
if (!interactionResult.consumesAction() || this.isBaby()) {
this.setOrderedToSit(!this.isOrderedToSit());
Expand Down

0 comments on commit a27b5ad

Please sign in to comment.