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') {
|
tasks.register('publish') {
|
||||||
dependsOn 'curseforge'
|
|
||||||
dependsOn 'modrinth'
|
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 {
|
modrinth {
|
||||||
token = project.hasProperty("MODRINTH_API_KEY") ? project.MODRINTH_API_KEY : ""
|
token = project.hasProperty("MODRINTH_API_KEY") ? project.MODRINTH_API_KEY : ""
|
||||||
projectId = "VkVpYDxO"
|
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=47.1.79
|
||||||
neo_version_range=[47,)
|
neo_version_range=[47,)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ package com.oitsjustjose.itemgator;
|
||||||
|
|
||||||
|
|
||||||
import com.oitsjustjose.itemgator.common.data.RecipeTypeRegistry;
|
import com.oitsjustjose.itemgator.common.data.RecipeTypeRegistry;
|
||||||
import net.minecraft.world.item.ItemStack;
|
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.AddReloadListenerEvent;
|
import net.minecraftforge.event.AddReloadListenerEvent;
|
||||||
import net.minecraftforge.event.TickEvent;
|
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();
|
var shouldReplace = allRecipes.parallelStream().filter(x -> x.matchesOriginal(stack) && x.appliesTo(event.player)).findFirst();
|
||||||
if (shouldReplace.isPresent()) {
|
if (shouldReplace.isPresent()) {
|
||||||
var sub = shouldReplace.get().getSubstitute(stack);
|
var sub = shouldReplace.get().getSubstitute(stack);
|
||||||
inventory.setItem(i, ItemStack.EMPTY);
|
inventory.setItem(i, sub);
|
||||||
inventory.add(sub);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -61,8 +59,7 @@ public class ItemGator {
|
||||||
var shouldRevert = allRecipes.parallelStream().filter(x -> x.matchesSubstitute(stack) && !x.appliesTo(event.player)).findFirst();
|
var shouldRevert = allRecipes.parallelStream().filter(x -> x.matchesSubstitute(stack) && !x.appliesTo(event.player)).findFirst();
|
||||||
if (shouldRevert.isPresent()) {
|
if (shouldRevert.isPresent()) {
|
||||||
var orig = shouldRevert.get().getOriginal(stack);
|
var orig = shouldRevert.get().getOriginal(stack);
|
||||||
inventory.setItem(i, ItemStack.EMPTY);
|
inventory.setItem(i, orig);
|
||||||
inventory.add(orig);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue