Skip to content

Commit

Permalink
Merge branch '1.21.1' into ioworker-saveddata-atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans authored Jan 3, 2025
2 parents 4a54dc0 + 71a734b commit 1089d11
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion patches/net/minecraft/data/tags/TagsProvider.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
TagBuilder tagbuilder = p_323138_.getValue();
List<TagEntry> list = tagbuilder.build();
- List<TagEntry> list1 = list.stream().filter(p_274771_ -> !p_274771_.verifyIfPresent(predicate, predicate1)).toList();
+ List<TagEntry> list1 = java.util.stream.Stream.concat(list.stream(), tagbuilder.getRemoveEntries())
+ List<TagEntry> list1 = list.stream()
+ .filter((p_274771_) -> !p_274771_.verifyIfPresent(predicate, predicate1))
+ .filter(this::missing)
+ .toList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected ItemStack getStackCopy() {

@Override
protected void setStackCopy(ItemStack stack) {
((IItemHandlerModifiable) slotItemHandler.getItemHandler()).setStackInSlot(index, stack);
((IItemHandlerModifiable) slotItemHandler.getItemHandler()).setStackInSlot(slotItemHandler.index, stack);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"minecraft:polished_andesite",
"#minecraft:beehives",
"#minecraft:banners",
"#minecraft:beds"
"#minecraft:beds",
"minecraft:dacite"
],
"values": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"minecraft:blocks/copper_block": {
"duration": 100,
"id": "minecraft:nausea",
"neoforge:cures": [
"protected_by_totem",
"milk"
],
"show_icon": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,10 @@ static void reloadableRegDataMaps(final DynamicTest test, final RegistrationHelp
reg.addProvider(event -> new DataMapProvider(event.getGenerator().getPackOutput(), event.getLookupProvider()) {
@Override
protected void gather() {
var effect = new MobEffectInstance(MobEffects.CONFUSION, 100);
effect.getCures().clear(); // Cures use a hash set (not linked) meaning that their serialization is not deterministic
builder(effectGrant)
.add(Blocks.COPPER_BLOCK.getLootTable(), new MobEffectInstance(MobEffects.CONFUSION, 100), false);
.add(Blocks.COPPER_BLOCK.getLootTable(), effect, false);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ protected void addTags(HolderLookup.Provider provider) {
.remove(key(Blocks.ANVIL))
.remove(key(Blocks.BASALT), key(Blocks.POLISHED_ANDESITE))
.remove(BlockTags.BEEHIVES)
.remove(BlockTags.BANNERS, BlockTags.BEDS);
.remove(BlockTags.BANNERS, BlockTags.BEDS)
// test removing optional IDs not present at run-time
.remove(ResourceLocation.withDefaultNamespace("dacite"));
}
};

Expand Down

0 comments on commit 1089d11

Please sign in to comment.