mapping
This commit is contained in:
1 parent
0aff2f90c3
commit
2e3a49756b
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
# check these on https://fabricmc.net/use
|
# check these on https://fabricmc.net/use
|
||||||
# or better: https://modmuss50.me/fabric.html
|
# or better: https://modmuss50.me/fabric.html
|
||||||
minecraft_version=21w13a
|
minecraft_version=21w13a
|
||||||
yarn_mappings=21w13a+build.34
|
yarn_mappings=21w13a+build.55
|
||||||
loader_version=0.11.3
|
loader_version=0.11.3
|
||||||
fabric_version=0.32.6+1.17
|
fabric_version=0.32.6+1.17
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ import net.minecraft.command.argument.MessageArgumentType;
|
|||||||
import net.minecraft.command.argument.StatusEffectArgumentType;
|
import net.minecraft.command.argument.StatusEffectArgumentType;
|
||||||
import net.minecraft.command.argument.NbtCompoundTagArgumentType;
|
import net.minecraft.command.argument.NbtCompoundTagArgumentType;
|
||||||
import net.minecraft.command.argument.NbtPathArgumentType;
|
import net.minecraft.command.argument.NbtPathArgumentType;
|
||||||
import net.minecraft.command.argument.NbtTagArgumentType;
|
import net.minecraft.command.argument.NbtElementArgumentType;
|
||||||
import net.minecraft.command.argument.NumberRangeArgumentType;
|
import net.minecraft.command.argument.NumberRangeArgumentType;
|
||||||
import net.minecraft.command.argument.ScoreboardObjectiveArgumentType;
|
import net.minecraft.command.argument.ScoreboardObjectiveArgumentType;
|
||||||
import net.minecraft.command.argument.ScoreboardCriterionArgumentType;
|
import net.minecraft.command.argument.ScoreboardCriterionArgumentType;
|
||||||
@@ -697,16 +697,16 @@ public abstract class CommandArgument
|
|||||||
@Override
|
@Override
|
||||||
protected ArgumentType<?> getArgumentType()
|
protected ArgumentType<?> getArgumentType()
|
||||||
{
|
{
|
||||||
return mapRequired?NbtCompoundTagArgumentType.nbtCompound(): NbtTagArgumentType.nbtTag();
|
return mapRequired?NbtCompoundTagArgumentType.nbtCompound(): NbtElementArgumentType.nbtElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Value getValueFromContext(CommandContext<ServerCommandSource> context, String param) throws CommandSyntaxException
|
protected Value getValueFromContext(CommandContext<ServerCommandSource> context, String param) throws CommandSyntaxException
|
||||||
{
|
{
|
||||||
if (mapRequired)
|
if (mapRequired)
|
||||||
return new NBTSerializableValue(NbtCompoundTagArgumentType.getCompoundTag(context, param));
|
return new NBTSerializableValue(NbtCompoundTagArgumentType.getNbtCompound(context, param));
|
||||||
else
|
else
|
||||||
return new NBTSerializableValue(NbtTagArgumentType.getTag(context, param));
|
return new NBTSerializableValue(NbtElementArgumentType.getNbtElement(context, param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in new issue
Block a user