Drop forge patch to tag#put (#473 #511)

This commit is contained in:
IzzelAliz 2022-03-27 15:30:06 +08:00
parent 5fba8c1e19
commit 7e71fd13d3
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,28 @@
package io.izzel.arclight.common.mixin.core.nbt;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.Tag;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
import javax.annotation.Nullable;
import java.util.Map;
@Mixin(CompoundTag.class)
public class CompoundTagMixin {
@Shadow @Final private Map<String, Tag> tags;
/**
* @author IzzelAliz
* @reason drop forge patch
*/
@Overwrite
@Nullable
public Tag put(String p_128366_, Tag p_128367_) {
// if (p_128367_ == null) throw new IllegalArgumentException("Invalid null NBT value with key " + p_128366_);
return this.tags.put(p_128366_, p_128367_);
}
}

View File

@ -18,8 +18,8 @@
"mixins": [
"advancements.AdvancementMixin",
"commands.CommandsMixin",
"commands.CommandSourceMixin",
"commands.CommandSource1Mixin",
"commands.CommandSourceMixin",
"commands.CommandSourceStackMixin",
"commands.arguments.EntityArgumentMixin",
"commands.arguments.blocks.BlockStateParserMixin",
@ -28,6 +28,7 @@
"commands.synchronization.ArgumentTypesMixin",
"fluid.FlowingFluidMixin",
"fluid.LavaFluidMixin",
"nbt.CompoundTagMixin",
"network.ConnectionMixin",
"network.ServerHandshakeNetHandlerMixin",
"network.ServerLoginNetHandlerMixin",
@ -48,11 +49,11 @@
"network.rcon.RConConsoleSourceMixin",
"server.BootstrapMixin",
"server.CustomServerBossInfoMixin",
"server.WorldStemMixin",
"server.MinecraftServerMixin",
"server.PlayerAdvancementsMixin",
"server.ServerFunctionManagerMixin",
"server.ServerScoreboardMixin",
"server.WorldStemMixin",
"server.commands.EffectCommandMixin",
"server.commands.GameRuleCommandMixin",
"server.commands.ReloadCommandMixin",