Skip to content

Commit

Permalink
fix: belt dropping while keep inventory is on
Browse files Browse the repository at this point in the history
Closes #31
  • Loading branch information
Jamalam360 committed Jul 20, 2024
1 parent f97f8ed commit a72b35e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
10 changes: 1 addition & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
- Fix hotbar rendering even when F1 is pressed.
- Fix server crash (#48).
- Move config client side, since all of its options were only applicable there.
- Fix issue with using enchanted items in the belt (#49).
- General stability improvements.
- Compress icon.
- Fix cases like tridents with loyalty not returning to the belt if it is selected.

Thanks to blodhgarm, developer of the Accessories mod, for finding and fixing the illusive enchantment issue.
- Fix (#31).
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
import java.util.function.Consumer;

import io.wispforest.accessories.api.AccessoryItem;
import io.wispforest.accessories.api.DropRule;
import io.wispforest.accessories.api.slot.SlotEntryReference;
import io.wispforest.accessories.api.slot.SlotReference;
import net.minecraft.network.chat.Component;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.util.Mth;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.SlotAccess;
import net.minecraft.world.entity.player.Player;
Expand Down Expand Up @@ -176,9 +174,4 @@ public void onEquip(ItemStack stack, SlotReference reference) {
StateManager.getStateManager(player).setInventory(player, new Mutable(getInventory(stack)));
}
}

@Override
public DropRule getDropRule(ItemStack stack, SlotReference reference, DamageSource source) {
return DropRule.DROP;
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.parallel=true

version=2.4.0+1.21
version=2.4.1+1.21
minecraft_version=1.21
branch=main
group=io.github.jamalam360
Expand Down

0 comments on commit a72b35e

Please sign in to comment.