parent
5fba8c1e19
commit
7e71fd13d3
|
@ -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_);
|
||||
}
|
||||
}
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user