From af14c9198d104bbbf321d4205c848d187c0fbcac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=82=A6=E8=A7=A3=E8=AF=B4?= Date: Wed, 11 Sep 2024 22:07:30 +0800 Subject: [PATCH] Removed unnecessary codes --- fabric/src/main/java/ziyue/tjmetro/mod/Registry.java | 4 ---- fabric/src/main/java/ziyue/tjmetro/mod/TianjinMetro.java | 3 --- .../main/java/ziyue/tjmetro/mod/client/RouteMapGenerator.java | 2 +- gradle.properties | 2 +- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/fabric/src/main/java/ziyue/tjmetro/mod/Registry.java b/fabric/src/main/java/ziyue/tjmetro/mod/Registry.java index 8e05a38..e173d0d 100644 --- a/fabric/src/main/java/ziyue/tjmetro/mod/Registry.java +++ b/fabric/src/main/java/ziyue/tjmetro/mod/Registry.java @@ -1,16 +1,12 @@ package ziyue.tjmetro.mod; -import org.mtr.libraries.kotlin.Pair; import org.mtr.mapping.holder.*; import org.mtr.mapping.mapper.BlockEntityExtension; import org.mtr.mapping.mapper.BlockItemExtension; import org.mtr.mapping.mapper.EntityExtension; import org.mtr.mapping.registry.*; import org.mtr.mapping.tool.PacketBufferReceiver; -import ziyue.filters.Filter; -import java.util.ArrayList; -import java.util.List; import java.util.function.BiFunction; import java.util.function.Function; import java.util.function.Supplier; diff --git a/fabric/src/main/java/ziyue/tjmetro/mod/TianjinMetro.java b/fabric/src/main/java/ziyue/tjmetro/mod/TianjinMetro.java index c7823ef..f37a654 100644 --- a/fabric/src/main/java/ziyue/tjmetro/mod/TianjinMetro.java +++ b/fabric/src/main/java/ziyue/tjmetro/mod/TianjinMetro.java @@ -2,9 +2,6 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import org.mtr.mapping.holder.ItemConvertible; -import org.mtr.mapping.holder.ItemStack; -import org.mtr.mapping.registry.CreativeModeTabHolder; import ziyue.tjmetro.mapping.BooleanGameRule; import ziyue.tjmetro.mapping.GameRuleRegistry; import ziyue.tjmetro.mod.packet.*; diff --git a/fabric/src/main/java/ziyue/tjmetro/mod/client/RouteMapGenerator.java b/fabric/src/main/java/ziyue/tjmetro/mod/client/RouteMapGenerator.java index 2688dc4..7e9b337 100644 --- a/fabric/src/main/java/ziyue/tjmetro/mod/client/RouteMapGenerator.java +++ b/fabric/src/main/java/ziyue/tjmetro/mod/client/RouteMapGenerator.java @@ -683,7 +683,7 @@ public static NativeImage generateRouteMapBMT(long platformId, boolean flip, flo final int lineWidth = (int) Math.ceil((float) lineSize / 4); for (int drawX = 0; drawX < lineWidth; drawX++) { for (int drawY = 0; drawY < lineSize * 1.8; drawY++) { - drawPixelSafe(nativeImage, x + drawX - lineWidth * interchangeColors.size() / 2, y + lines * lineSpacing + drawY, passed ? ARGB_LIGHT_GRAY : ARGB_BLACK); + drawPixelSafe(nativeImage, x + drawX - lineWidth / 2, y + lines * lineSpacing + drawY, passed ? ARGB_LIGHT_GRAY : ARGB_BLACK); } } diff --git a/gradle.properties b/gradle.properties index 4862a90..cdce26f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ org.gradle.daemon=false minecraft_version=1.20.4 # Mod Properties -mod_version=1.0.0-beta-2-unoffical-20240812 +mod_version=1.0.0-beta-2 maven_group=ziyue.tjmetro archives_base_name=tjmetro