1.0.1 - More fixes!
This commit is contained in:
parent
8b7171378c
commit
b6cad25998
4 changed files with 8 additions and 22 deletions
15
build.gradle
15
build.gradle
|
|
@ -65,24 +65,9 @@ jar {
|
|||
}
|
||||
|
||||
tasks.register('publish') {
|
||||
dependsOn 'curseforge'
|
||||
dependsOn 'modrinth'
|
||||
}
|
||||
|
||||
curseforge {
|
||||
apiKey = project.hasProperty("CURSEFORGE_API_KEY") ? project.CURSEFORGE_API_KEY : ""
|
||||
project {
|
||||
id = '349530'
|
||||
changelogType = 'markdown'
|
||||
changelog = file("./changelog.md")
|
||||
releaseType = 'release'
|
||||
addGameVersion "${game_version}"
|
||||
mainArtifact(jar) {
|
||||
displayName = "ItemGator ${game_version} ${mod_version}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
modrinth {
|
||||
token = project.hasProperty("MODRINTH_API_KEY") ? project.MODRINTH_API_KEY : ""
|
||||
projectId = "VkVpYDxO"
|
||||
|
|
|
|||
|
|
@ -1 +1,5 @@
|
|||
# Circumscription
|
||||
# ItemGator Changelog
|
||||
|
||||
## 1.0.1
|
||||
|
||||
General changes and fixes (Honestly did a lot here, so my apologies for a very vague changelog 😔)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
mod_version=1.0.0
|
||||
mod_version=1.0.1
|
||||
|
||||
neo_version=47.1.79
|
||||
neo_version_range=[47,)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package com.oitsjustjose.itemgator;
|
|||
|
||||
|
||||
import com.oitsjustjose.itemgator.common.data.RecipeTypeRegistry;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.AddReloadListenerEvent;
|
||||
import net.minecraftforge.event.TickEvent;
|
||||
|
|
@ -52,8 +51,7 @@ public class ItemGator {
|
|||
var shouldReplace = allRecipes.parallelStream().filter(x -> x.matchesOriginal(stack) && x.appliesTo(event.player)).findFirst();
|
||||
if (shouldReplace.isPresent()) {
|
||||
var sub = shouldReplace.get().getSubstitute(stack);
|
||||
inventory.setItem(i, ItemStack.EMPTY);
|
||||
inventory.add(sub);
|
||||
inventory.setItem(i, sub);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -61,8 +59,7 @@ public class ItemGator {
|
|||
var shouldRevert = allRecipes.parallelStream().filter(x -> x.matchesSubstitute(stack) && !x.appliesTo(event.player)).findFirst();
|
||||
if (shouldRevert.isPresent()) {
|
||||
var orig = shouldRevert.get().getOriginal(stack);
|
||||
inventory.setItem(i, ItemStack.EMPTY);
|
||||
inventory.add(orig);
|
||||
inventory.setItem(i, orig);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue