Skip to content

Commit

Permalink
Frantic-est fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Aug 7, 2021
1 parent e77346e commit bbc38ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
package com.willfp.eco.proxy.v1_16_R3;

import lombok.experimental.UtilityClass;
import org.bukkit.craftbukkit.libs.org.apache.commons.lang3.Validate;
import org.bukkit.craftbukkit.v1_16_R3.inventory.CraftItemStack;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;

import java.lang.reflect.Field;

@UtilityClass
public class FastItemStackUtils {
private final Field field;
private static final Field field;

public net.minecraft.server.v1_16_R3.ItemStack getNMSStack(@NotNull final ItemStack itemStack) {
public static net.minecraft.server.v1_16_R3.ItemStack getNMSStack(@NotNull final ItemStack itemStack) {
if (!(itemStack instanceof CraftItemStack)) {
return CraftItemStack.asNMSCopy(itemStack);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

@UtilityClass
public class FastItemStackUtils {
private final Field field;
private static final Field field;

public net.minecraft.world.item.ItemStack getNMSStack(@NotNull final ItemStack itemStack) {
public static net.minecraft.world.item.ItemStack getNMSStack(@NotNull final ItemStack itemStack) {
if (!(itemStack instanceof CraftItemStack)) {
return CraftItemStack.asNMSCopy(itemStack);
} else {
Expand Down

0 comments on commit bbc38ae

Please sign in to comment.