Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Jan 20, 2024
1 parent 2338e88 commit f0ca05b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@SideOnly(Side.CLIENT)
public class ModIncompatibilityException extends CustomModLoadingErrorDisplayException {

@Serial
@SuppressWarnings("all")
private static final long serialVersionUID = 1L;

private final List<String> messages;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gregtech/api/util/Mods.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public ItemStack getItem(@NotNull String name, int meta, int amount) {

@NotNull
public ItemStack getItem(@NotNull String name, int meta, int amount, @Nullable String nbt) {
if (isModLoaded()) {
if (!isModLoaded()) {
return ItemStack.EMPTY;
}
return GameRegistry.makeItemStack(ID + ":" + name, meta, amount, nbt);
Expand Down

0 comments on commit f0ca05b

Please sign in to comment.