Skip to content

Commit

Permalink
Bump some versions and reformat code.
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdAurora committed Mar 29, 2023
1 parent d77c129 commit a2da510
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 22 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,14 @@
- Updated Russian translations ([#116](https://github.com/LambdAurora/LambDynamicLights/pull/116), [#121](https://github.com/LambdAurora/LambDynamicLights/pull/121)).
- Added Ukrainian translations ([#120](https://github.com/LambdAurora/LambDynamicLights/pull/120)).

## 2.2.1
## 2.3.0

- Added Traditional Chinese translations ([#142](https://github.com/LambdAurora/LambDynamicLights/pull/142)).
- Updated Brazilian Portuguese translations ([#135](https://github.com/LambdAurora/LambDynamicLights/pull/135)).
- Updated Simplified Chinese translations ([#133](https://github.com/LambdAurora/LambDynamicLights/pull/133)).
- Updated to Minecraft 1.19.4 ([#144](https://github.com/LambdAurora/LambDynamicLights/pull/144)).
- Updated [SpruceUI].
- Updated [pridelib].

[SpruceUI]: https://github.com/LambdAurora/SpruceUI "SpruceUI page"
[pridelib]: https://github.com/Queerbric/pridelib "Pridelib page"
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ loader_version=0.14.18
fabric_api_version=0.76.0+1.19.4

# Mod Properties
mod_version = 2.2.1
mod_version = 2.3.0
maven_group = dev.lambdaurora
archives_base_name = lambdynamiclights
modrinth_id=yBW8D80W
Expand All @@ -19,5 +19,5 @@ curseforge_id=393442
# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
spruceui_version=4.2.0+1.19.4
pridelib_version=1.2.0+1.19.3
pridelib_version=1.2.0+1.19.4
modmenu_version=6.1.0-rc.4
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import dev.lambdaurora.spruceui.option.SpruceOption;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.Text;
import org.jetbrains.annotations.NotNull;

Expand All @@ -27,7 +26,7 @@
* Represents the mod configuration.
*
* @author LambdAurora
* @version 2.2.1
* @version 2.2.0
* @since 1.0.0
*/
public class DynamicLightsConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* @author LambdAurora
* @version 2.2.1
* @version 2.3.0
* @since 1.1.0
*/
public final class DynamicLightHandlers {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.registry.Registries;
import net.minecraft.state.property.Property;
import net.minecraft.util.Identifier;
import net.minecraft.registry.Registry;
import net.minecraft.registry.Registries;
import org.jetbrains.annotations.NotNull;

import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
import dev.lambdaurora.lambdynlights.LambDynLights;
import net.minecraft.item.BlockItem;
import net.minecraft.item.ItemStack;
import net.minecraft.registry.Registries;
import net.minecraft.resource.Resource;
import net.minecraft.resource.ResourceManager;
import net.minecraft.util.Identifier;
import net.minecraft.registry.Registry;
import net.minecraft.registry.Registries;

import java.io.IOException;
import java.io.InputStreamReader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;

public final class DynamicLightsOptionsOption {
private static final String KEY = "lambdynlights.menu.title";
Expand All @@ -37,12 +36,12 @@ public static Option<Unit> getOption(Screen parent) {
}

private record DummyValueSet(Screen parent) implements Option.ValueSet<Unit> {

@Override
public Function<Option<Unit>, ClickableWidget> getButtonCreator(Option.TooltipSupplier<Unit> tooltipSupplier, GameOptions options,
int x, int y, int width, Consumer<Unit> changeCallback) {
int x, int y, int width, Consumer<Unit> changeCallback) {
return option -> ButtonWidget.builder(Text.translatable(KEY), button -> MinecraftClient.getInstance()
.setScreen(new SettingsScreen(this.parent))).positionAndSize(x, y, width, 20).build();
.setScreen(new SettingsScreen(this.parent))).positionAndSize(x, y, width, 20).build();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void render(MatrixStack matrices, SpruceWidget widget, int vOffset, int m
public static Background random() {
return new RandomPrideFlagBackground(PrideFlags.getRandomFlag(RANDOM));
}

private static VertexConsumer vertex(BufferBuilder builder, Matrix4f matrix, float x, float y, float z) {
Vector4f vector4f = matrix.transform(new Vector4f(x, y, z, 1.0f));
return builder.vertex(vector4f.x(), vector4f.y(), vector4f.z());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.registry.Registries;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
import net.minecraft.registry.Registry;
import net.minecraft.registry.Registries;
import org.jetbrains.annotations.Nullable;

import java.util.List;
Expand All @@ -45,7 +44,7 @@
* Represents the settings screen of LambDynamicLights.
*
* @author LambdAurora
* @version 2.2.1
* @version 2.2.0
* @since 1.0.0
*/
public class SettingsScreen extends SpruceScreen {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
import dev.lambdaurora.lambdynlights.config.LightSourceSettingEntry;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.text.Text;
import net.minecraft.registry.Registry;
import net.minecraft.registry.Registries;
import net.minecraft.text.Text;
import org.jetbrains.annotations.Nullable;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
import dev.lambdaurora.lambdynlights.config.LightSourceSettingEntry;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.text.Text;
import net.minecraft.registry.Registry;
import net.minecraft.registry.Registries;
import net.minecraft.text.Text;
import org.jetbrains.annotations.Nullable;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand Down

0 comments on commit a2da510

Please sign in to comment.