Skip to content

Commit

Permalink
Seed bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cweckerl committed Jul 17, 2023
1 parent bcc18b0 commit c4d594f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 43 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ plugins {
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}

version = '1.20.1-2.0.5'
version = '1.20.1-2.0.6'
group = 'enemeez.simplefarming' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
// archivesBaseName = 'simplefarming'
archivesBaseName = 'simplefarming'

// Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"to_place": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "simplefarming:raspberry_bush",
"Name": "simplefarming:strawberry_bush",
"Properties": {
"age": "3"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected GlobalLootModifier(LootItemCondition[] conditionsIn) {

@Override
protected @NotNull ObjectArrayList<ItemStack> doApply(ObjectArrayList<ItemStack> generatedLoot, LootContext context) {
var index = context.getRandom().nextInt(ModItems.SEEDS.size() - 1);
var index = context.getRandom().nextInt(ModItems.SEEDS.size());
generatedLoot.add(new ItemStack(ModItems.SEEDS.get(index).get()));
return generatedLoot;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ license="MIT"
issueTrackerURL="https://github.com/cweckerl/simplefarming/issues"
[[mods]]
modId="simplefarming"
version="1.20.1-2.0.5"
version="1.20.1-2.0.6"
displayName="Simple Farming"
displayURL="https://www.curseforge.com/minecraft/mc-mods/simple-farming"
logoFile="examplemod.png"
Expand Down

0 comments on commit c4d594f

Please sign in to comment.