File tree 1 file changed +1
-2
lines changed
paper-server/src/main/java/org/bukkit/craftbukkit/inventory
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 10
10
import net .minecraft .core .component .DataComponentPatch ;
11
11
import net .minecraft .core .registries .Registries ;
12
12
import net .minecraft .resources .ResourceLocation ;
13
- import net .minecraft .server .MinecraftServer ;
14
13
import net .minecraft .tags .EnchantmentTags ;
15
14
import net .minecraft .util .RandomSource ;
16
15
import net .minecraft .world .item .Item ;
@@ -154,7 +153,7 @@ public Color getDefaultLeatherColor() {
154
153
public ItemStack createItemStack (String input ) throws IllegalArgumentException {
155
154
try {
156
155
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 );
158
157
Preconditions .checkArgument (!reader .canRead (), "Trailing input found when parsing ItemStack: %s" , input );
159
158
160
159
Item item = arg .item ().value ();
You can’t perform that action at this time.
0 commit comments