Skip to content

Commit

Permalink
Fix old loot still drops
Browse files Browse the repository at this point in the history
  • Loading branch information
LLytho committed Jul 5, 2022
1 parent be6c194 commit a04151f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning].

## [Unreleased]
- /
## [2.7.2] - 2022-07-05
### Changed
- Fabric Fix: Old drop still dropped.

## [2.7.1] - 2022-07-04
### Changed
- Fabric Fix: Modifications did not trigger for entities.
Expand Down Expand Up @@ -72,6 +76,7 @@ We are now on 1.18.2!

<!-- Versions -->
[unreleased]: https://github.com/AlmostReliable/lootjs/compare/1.18...HEAD
[2.7.2]: https://github.com/AlmostReliable/lootjs/releases/tag/v1.18-2.7.2
[2.7.1]: https://github.com/AlmostReliable/lootjs/releases/tag/v1.18-2.7.1
[2.7.0]: https://github.com/AlmostReliable/lootjs/releases/tag/v1.18-2.7.0
[2.6.0]: https://github.com/AlmostReliable/lootjs/releases/tag/v1.18-2.6.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class LootTableMixin implements LootTableExtension {
@Unique
protected ResourceLocation lootjs$lootTableId;

@Inject(method = "getRandomItems(Lnet/minecraft/world/level/storage/loot/LootContext;Ljava/util/function/Consumer;)V", at = @At("RETURN"), cancellable = true)
@Inject(method = "getRandomItems(Lnet/minecraft/world/level/storage/loot/LootContext;Ljava/util/function/Consumer;)V", at = @At("HEAD"), cancellable = true)
private void invokeLootModifiers(LootContext context, Consumer<ItemStack> consumer, CallbackInfo ci) {
List<ItemStack> loot = new ArrayList<>();
Consumer<ItemStack> stackSplitter = LootTable.createStackSplitter(loot::add);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group = com.almostreliable.lootjs
license = GNU Lesser General Public License v3.0
version = 2.7.1
version = 2.7.2
mixin_version = 0.8.5

# Common
Expand Down

0 comments on commit a04151f

Please sign in to comment.