Skip to content

Commit

Permalink
Release 2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneLabs committed Nov 23, 2022
2 parents e9f8bfa + 88eeffa commit 10bb2c4
Show file tree
Hide file tree
Showing 47 changed files with 3,088 additions and 86 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img alt="GitHub Workflow Status (branch)" src="https://img.shields.io/github/workflow/status/StoneLabs/strains-of-ascension/build/master?label=master&style=flat-square"> <img alt="GitHub Workflow Status (branch)" src="https://img.shields.io/github/workflow/status/StoneLabs/strains-of-ascension/build/development?label=development&style=flat-square"> <img alt="GitHub issues" src="https://img.shields.io/github/issues/StoneLabs/strains-of-ascension?style=flat-square"> <img alt="Minecraft Version" src="https://img.shields.io/badge/minecraft%20Version-1.18-blue?style=flat-square"> <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/StoneLabs/strains-of-ascension?style=flat-square"> <img alt="GitHub all releases" src="https://img.shields.io/github/downloads/StoneLabs/strains-of-ascension/total?color=blue&label=downloads&style=flat-square">
<img alt="GitHub Workflow Status (branch)" src="https://img.shields.io/github/workflow/status/StoneLabs/strains-of-ascension/build/master?label=master&style=flat-square"> <img alt="GitHub Workflow Status (branch)" src="https://img.shields.io/github/workflow/status/StoneLabs/strains-of-ascension/build/development?label=development&style=flat-square"> <img alt="GitHub issues" src="https://img.shields.io/github/issues/StoneLabs/strains-of-ascension?style=flat-square"> <img alt="Minecraft Version" src="https://img.shields.io/badge/minecraft%20Version-1.19.2-blue?style=flat-square"> <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/StoneLabs/strains-of-ascension?style=flat-square"> <img alt="GitHub all releases" src="https://img.shields.io/github/downloads/StoneLabs/strains-of-ascension/total?color=blue&label=downloads&style=flat-square">

# Strains of Ascension

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
}

Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/versions.html
minecraft_version=1.18
yarn_mappings=1.18+build.1
loader_version=0.12.6
# check these on https://fabricmc.net/develop/
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
loader_version=0.14.10

# Mod Properties
mod_version = 2.8.0
mod_version = 2.9.0
maven_group = net.stone_labs.strainsofascension
archives_base_name = strains_of_ascension

# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.43.1+1.18
fabric_version=0.67.1+1.19.2
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
48 changes: 48 additions & 0 deletions remappedSrc/net/stone_labs/strainsofascension/ClientWarning.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package net.stone_labs.strainsofascension;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import net.minecraft.text.KeybindText;
import net.minecraft.text.LiteralText;
import org.lwjgl.glfw.GLFW;

public class ClientWarning implements ClientModInitializer
{
public static boolean hide = false;
@Override
public void onInitializeClient()
{
// Yes, the translation key is hacky as fuck but whatever, this is only a client warning.
// If you're seeing this message you are not using the mod correctly so it should be fine.
// I can't be bothered to add a lang file for a screen you only see if you install the mod incorrectly.

HudRenderCallback.EVENT.register((stack, delta) -> {
if (hide)
return;

MinecraftClient.getInstance().textRenderer.draw(stack, Text.literal("§4Warning: Strains of Ascension is a dedicated server only mod."), 2, 2, 1);
MinecraftClient.getInstance().textRenderer.drawWithShadow(stack, Text.literal("§fIt will not work when installed on client minecraft."), 2, 12, 1);
MinecraftClient.getInstance().textRenderer.drawWithShadow(stack, Text.literal("§fThis might change in the future. For updates and questions"), 2, 27, 1);
MinecraftClient.getInstance().textRenderer.drawWithShadow(stack, Text.literal("§frefer to https://github.com/StoneLabs/strains-of-ascension."), 2, 37, 1);
MinecraftClient.getInstance().textRenderer.drawWithShadow(stack, Text.literal("§fPress ").append(new KeybindText("Hide client warning")).append(Text.literal(" §fto hide this warning.")), 2, 50, 1);

});
var keyBinding = KeyBindingHelper.registerKeyBinding(new KeyBinding(
"Hide client warning",
InputUtil.Type.KEYSYM,
GLFW.GLFW_KEY_K,
"Strains of Ascension"
));

ClientTickEvents.END_CLIENT_TICK.register(client -> {
while (keyBinding.wasPressed()) {
hide = !hide;
}
});
}
}
Loading

0 comments on commit 10bb2c4

Please sign in to comment.