Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
warcrimes for 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
AnOpenSauceDev committed Jul 2, 2024
1 parent 30b6e49 commit 87a8df1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ repositories {

dependencies {

modApi "com.terraformersmc:modmenu:10.0.0-beta.1"
modApi( "me.shedaniel.cloth:cloth-config-fabric:14.0.126")
modApi "com.terraformersmc:modmenu:11.0.1"
modApi( "me.shedaniel.cloth:cloth-config-fabric:15.0.127")
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.3
minecraft_version=1.21
yarn_mappings=1.21+build.7
loader_version=0.15.11

# Fabric API
fabric_version=0.99.0+1.20.6
fabric_version=0.100.4+1.21

# LibMCdev
#LibMCdev
libmcdev_version=1.4.2

# Mod Properties
mod_version=3.8.1
mod_version=3.8.2
maven_group=com.modrinth
archives_base_name=methane

4 changes: 2 additions & 2 deletions src/main/java/com/modrinth/methane/client/MethaneClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

import static com.modrinth.methane.util.MethaneConstants.METHANE_STATE_PACKET;

import static net.minecraft.client.realms.task.LongRunningTask.setScreen;

public class MethaneClient implements ClientModInitializer {

public KeyBinding MethaneToggle;

public static final Identifier METHANE_RESP_PACKET = new Identifier("methane_server","pong");
//public static final Identifier METHANE_RESP_PACKET = new Identifier("methane_server","pong");

public int REBUILD_TICKS_THRESHOLD = Methane.settings.rebuildSeconds*20; // rebuild every x seconds
static int ticks = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;

import static com.modrinth.methane.client.MethaneClient.METHANE_RESP_PACKET;
//import static com.modrinth.methane.client.MethaneClient.METHANE_RESP_PACKET;

@Environment(EnvType.CLIENT)
public class MethaneJoinPopUp extends Screen {
Expand All @@ -37,7 +37,7 @@ public void close() {
@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
super.render(context, mouseX, mouseY, delta);
MultilineText txt = MultilineText.create(textRenderer,Text.translatable("methane.serverpopup.info"),256,0xFFFFFF);
MultilineText txt = MultilineText.create(textRenderer,256,Text.translatable("methane.serverpopup.info"));
txt.drawCenterWithShadow(context,width / 2, (height - 30) / 2);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.modrinth.methane.Methane;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.block.enums.CameraSubmersionType;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.client.render.*;
import net.minecraft.entity.Entity;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/modrinth/methane/util/MethaneConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public class MethaneConstants {

public static final String MOD_NAME = "Methane";

public static final Identifier METHANE_STATE_PACKET = new Identifier("methane_server","statepacket");
//public static final Identifier METHANE_STATE_PACKET = new Identifier("methane_server","statepacket");

public static final Identifier METHANE_RESP_PACKET = new Identifier("methane_server","pong");
// public static final Identifier METHANE_RESP_PACKET = new Identifier("methane_server","pong");

public static ThreadLocalRandom SharedRandom = ThreadLocalRandom.current();

Expand Down

0 comments on commit 87a8df1

Please sign in to comment.