Skip to content

Commit 5855454

Browse files
committed
Fix oopsie
1 parent 1111f18 commit 5855454

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import net.minecraft.core.component.DataComponentPatch;
1111
import net.minecraft.core.registries.Registries;
1212
import net.minecraft.resources.ResourceLocation;
13-
import net.minecraft.server.MinecraftServer;
1413
import net.minecraft.tags.EnchantmentTags;
1514
import net.minecraft.util.RandomSource;
1615
import net.minecraft.world.item.Item;
@@ -154,7 +153,7 @@ public Color getDefaultLeatherColor() {
154153
public ItemStack createItemStack(String input) throws IllegalArgumentException {
155154
try {
156155
StringReader reader = new StringReader(input);
157-
ItemParser.ItemResult arg = new ItemParser(MinecraftServer.getMinecraftRegistry()).parse(reader);
156+
ItemParser.ItemResult arg = new ItemParser(CraftRegistry.getMinecraftRegistry()).parse(reader);
158157
Preconditions.checkArgument(!reader.canRead(), "Trailing input found when parsing ItemStack: %s", input);
159158

160159
Item item = arg.item().value();

0 commit comments

Comments
 (0)