Skip to content

Commit

Permalink
Update to 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Dec 31, 2023
1 parent ecd0236 commit 75d22df
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 13 deletions.
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
------------------------------------------------------
Version 1.4.0
------------------------------------------------------
Updated to 1.20.4

**Mod Interactions**
- REI no longer appears on the RPG dialogue screen variant

------------------------------------------------------
Version 1.3.1
------------------------------------------------------
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ org.gradle.jvmargs=-Xmx2G

# Fabric Properties
# check these on https://fabricmc.net/versions.html
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.1
loader_version=0.14.22
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.3
java_version=17

# Mod Properties
mod_version = 1.3.1
mod_version = 1.4.0
maven_group = org.ladysnake
archives_base_name = blabber

# Dependencies
fabric_version=0.89.2+1.20.2
fabric_version=0.92.0+1.20.4

# Publishing
license_header = LGPL
curseforge_id = 565396
modrinth_id = 2oRMVFgd
curseforge_versions = 1.20.2
curseforge_versions = 1.20.4
cf_requirements = fabric-api
cf_embeddeds = cardinal-components-api
release_type = release
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[versions]
cca = "5.3.0"
elmendorf = "0.12.0"
emi = "1.0.23+1.20.2"
emi = "1.0.29+1.20.4"
fpa = "0.2-SNAPSHOT"
mcAnnotations = "1.0"
modmenu = "8.0.0-beta.2"
rei = "13.0.666"
modmenu = "9.0.0"
rei = "14.0.688"

[libraries]
cca-base = { module = "dev.onyxstudios.cardinal-components-api:cardinal-components-base", version.ref = "cca" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public boolean makeChoice(ServerPlayerEntity player, int choice) {

return true;
} catch (IllegalStateException e) {
Blabber.LOGGER.error("{} made invalid choice {} in {}#{}: {}", player.getEntityName(), choice, this.dialogue.getId(), this.getCurrentStateKey(), e.getMessage());
Blabber.LOGGER.error("{} made invalid choice {} in {}#{}: {}", player.getNameForScoreboard(), choice, this.dialogue.getId(), this.getCurrentStateKey(), e.getMessage());
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import net.minecraft.network.PacketByteBuf;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.text.Text;
import net.minecraft.text.TextCodecs;
import net.minecraft.text.Texts;
import net.minecraft.util.dynamic.Codecs;
import org.apache.commons.lang3.StringUtils;
Expand All @@ -33,7 +34,7 @@

public record DialogueChoice(Text text, String next, Optional<DialogueChoiceCondition> condition) {
public static final Codec<DialogueChoice> CODEC = RecordCodecBuilder.create(instance -> instance.group(
Codecs.TEXT.fieldOf("text").forGetter(DialogueChoice::text),
TextCodecs.CODEC.fieldOf("text").forGetter(DialogueChoice::text),
Codec.STRING.fieldOf("next").forGetter(DialogueChoice::next),
Codecs.createStrictOptionalFieldCodec(DialogueChoiceCondition.CODEC, "only_if").forGetter(DialogueChoice::condition)
).apply(instance, DialogueChoice::new));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import net.minecraft.network.PacketByteBuf;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.text.Text;
import net.minecraft.text.TextCodecs;
import net.minecraft.text.Texts;
import net.minecraft.util.dynamic.Codecs;
import org.apache.commons.lang3.StringUtils;
Expand All @@ -43,7 +44,7 @@ public record DialogueState(
) {
public static final Codec<DialogueState> CODEC = RecordCodecBuilder.create(instance -> instance.group(
// Kinda optional, but we still want errors if you got it wrong >:(
Codecs.createStrictOptionalFieldCodec(Codecs.TEXT, "text", Text.empty()).forGetter(DialogueState::text),
Codecs.createStrictOptionalFieldCodec(TextCodecs.CODEC, "text", Text.empty()).forGetter(DialogueState::text),
Codecs.createStrictOptionalFieldCodec(Codec.list(DialogueChoice.CODEC), "choices", List.of()).forGetter(DialogueState::choices),
Codecs.createStrictOptionalFieldCodec(InstancedDialogueAction.CODEC, "action").forGetter(DialogueState::action),
Codecs.createStrictOptionalFieldCodec(Codec.STRING.xmap(s -> Enum.valueOf(ChoiceResult.class, s.toUpperCase(Locale.ROOT)), Enum::name), "type", ChoiceResult.DEFAULT).forGetter(DialogueState::type)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import net.minecraft.network.PacketByteBuf;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.text.Text;
import net.minecraft.text.TextCodecs;
import net.minecraft.text.Texts;
import net.minecraft.util.dynamic.Codecs;
import org.jetbrains.annotations.Nullable;
Expand All @@ -33,7 +34,7 @@
public record UnavailableAction(UnavailableDisplay display, Optional<Text> message) {
public static final Codec<UnavailableAction> CODEC = RecordCodecBuilder.create(instance -> instance.group(
UnavailableDisplay.CODEC.fieldOf("display").forGetter(UnavailableAction::display),
Codecs.createStrictOptionalFieldCodec(Codecs.TEXT, "message").forGetter(UnavailableAction::message)
Codecs.createStrictOptionalFieldCodec(TextCodecs.CODEC, "message").forGetter(UnavailableAction::message)
).apply(instance, UnavailableAction::new));

public UnavailableAction(PacketByteBuf buf) {
Expand Down

0 comments on commit 75d22df

Please sign in to comment.