Merge 1.19.4 into 1.20

This commit is contained in:
embeddedt 2023-06-14 22:14:23 -04:00
commit 42d41eb0f7
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 8 additions and 4 deletions

View File

@ -144,10 +144,14 @@ public abstract class ModelBakeryMixin implements IExtendedModelBakery {
private BiFunction<ResourceLocation, Material, TextureAtlasSprite> textureGetter;
@Inject(method = "bakeModels", at = @At("HEAD"), cancellable = true)
private void skipBake(BiFunction<ResourceLocation, Material, TextureAtlasSprite> getter, CallbackInfo ci) {
@Inject(method = "bakeModels", at = @At("HEAD"))
private void storeTextureGetter(BiFunction<ResourceLocation, Material, TextureAtlasSprite> getter, CallbackInfo ci) {
textureGetter = getter;
ci.cancel();
}
@Redirect(method = "bakeModels", at = @At(value = "INVOKE", target = "Ljava/util/Map;keySet()Ljava/util/Set;"))
private Set skipBakingModels(Map map) {
return Collections.emptySet();
}
/**

View File

@ -33,7 +33,7 @@ for version in "${all_versions[@]}"; do
if ! { echo "$version"; echo "$our_version"; } | sort --version-sort --check &>/dev/null; then
echo -n "merging $our_version into ${version}... "
git checkout -b propagations/$version origin/$version &>/dev/null
if ! git merge --no-commit propagations/$our_version >/dev/null; then
if ! git merge --no-commit propagations/$our_version &>/dev/null; then
merge_failed=yes
echo "failed, this merge must be done manually using the provided shell"
else