Skip to content

Commit

Permalink
1.20.5-pre2 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Apr 15, 2024
1 parent d4f1273 commit 2a2c66b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2016, 2017, 2018, 2019 FabricMC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package net.fabricmc.fabric.mixin.attachment;

import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

import net.minecraft.block.entity.BannerBlockEntity;
import net.minecraft.nbt.NbtCompound;

import net.fabricmc.fabric.api.attachment.v1.AttachmentTarget;

@Mixin(BannerBlockEntity.class)
abstract class BannerBlockEntityMixin {
@ModifyExpressionValue(method = "toInitialChunkDataNbt", at = @At(value = "INVOKE", target = "Lnet/minecraft/block/entity/BannerBlockEntity;createNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;"))
private NbtCompound removeAttachments(NbtCompound original) {
original.remove(AttachmentTarget.NBT_ATTACHMENT_KEY);
return original;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"compatibilityLevel": "JAVA_17",
"mixins": [
"AttachmentTargetsMixin",
"BannerBlockEntityMixin",
"BlockEntityMixin",
"ChunkSerializerMixin",
"EntityMixin",
Expand Down
18 changes: 9 additions & 9 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx2560M
org.gradle.parallel=true
fabric.loom.multiProjectOptimisation=true

version=0.97.0
version=0.97.1
minecraft_version=1.20.5-pre2
yarn_version=+build.1
loader_version=0.15.6
Expand All @@ -21,26 +21,26 @@ fabric-blockrenderlayer-v1-version=1.1.50
fabric-command-api-v1-version=1.2.45
fabric-command-api-v2-version=2.2.24
fabric-commands-v0-version=0.2.62
fabric-content-registries-v0-version=8.0.0
fabric-content-registries-v0-version=8.0.1
fabric-crash-report-info-v1-version=0.2.27
fabric-data-attachment-api-v1-version=1.1.12
fabric-data-generation-api-v1-version=19.0.1
fabric-data-attachment-api-v1-version=1.1.13
fabric-data-generation-api-v1-version=19.0.2
fabric-dimensions-v1-version=2.1.67
fabric-entity-events-v1-version=1.6.8
fabric-events-interaction-v0-version=0.7.6
fabric-game-rule-api-v1-version=1.0.50
fabric-gametest-api-v1-version=1.3.13
fabric-gametest-api-v1-version=1.3.14
fabric-item-api-v1-version=8.1.0
fabric-item-group-api-v1-version=4.0.35
fabric-item-group-api-v1-version=4.0.36
fabric-key-binding-api-v1-version=1.0.45
fabric-keybindings-v0-version=0.2.43
fabric-lifecycle-events-v1-version=2.3.4
fabric-loot-api-v2-version=3.0.1
fabric-loot-api-v2-version=3.0.2
fabric-message-api-v1-version=6.0.10
fabric-model-loading-api-v1-version=1.0.12
fabric-models-v0-version=0.4.11
fabric-networking-api-v1-version=4.0.7
fabric-object-builder-api-v1-version=15.1.0
fabric-object-builder-api-v1-version=15.1.1
fabric-particles-v1-version=4.0.0
fabric-recipe-api-v1-version=5.0.2
fabric-registry-sync-v0-version=5.0.13
Expand All @@ -52,7 +52,7 @@ fabric-rendering-fluids-v1-version=3.1.3
fabric-rendering-v0-version=1.1.64
fabric-rendering-v1-version=4.2.4
fabric-resource-conditions-api-v1-version=4.0.1
fabric-resource-loader-v0-version=1.0.2
fabric-resource-loader-v0-version=1.0.3
fabric-screen-api-v1-version=2.0.21
fabric-screen-handler-api-v1-version=1.3.70
fabric-sound-api-v1-version=1.0.21
Expand Down

0 comments on commit 2a2c66b

Please sign in to comment.