Skip to content

Commit 4e2a941

Browse files
committed
Release 2.0.1
1 parent b2da6b6 commit 4e2a941

File tree

4 files changed

+118
-9
lines changed

4 files changed

+118
-9
lines changed

changelog.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1-
Fixes:
2-
- Fixes #271 - Darkened background of reconfiguration UI is rendering in the foreground
3-
- Fixes #259 - Console Configurator Hologram no longer updates
1+
# Version 2.0.1
42

3+
![TARDIS Refined](https://wiki.tardisrefined.net/TARDIS-Refined-Wiki/tardis_refined_v2.png)
54

65

7-
Additions:
8-
- Added Faded Police Box Shell Pattern
6+
## ADDITIONS
7+
- Added Eject Button to TARDIS Menu
8+
- Added Faded Shell Variant for Police Box
9+
10+
## BUG FIXES
11+
+ Fixes [#271](https://github.com/WhoCraft/TardisRefined/issues/271) - Darkened background of reconfiguration UI is rendering in the foreground
12+
+ Fixes [#259](https://github.com/WhoCraft/TardisRefined/issues/259) - Console Configurator Hologram no longer updates
13+
+ Fixes [#257](https://github.com/WhoCraft/TardisRefined/issues/257) - Immersive Portals stops teleportation in ARS Airlock area
14+
+ Fixes [#253](https://github.com/WhoCraft/TardisRefined/issues/253) - Failure to launch on NeoForge
15+
+ Fixes [#254](https://github.com/WhoCraft/TardisRefined/issues/254) - Gravity well fall damage
16+
+ Fixes [#273](https://github.com/WhoCraft/TardisRefined/issues/273) - Interior door texture glitch when external shell is changed
17+
+ Fixes [#276](https://github.com/WhoCraft/TardisRefined/issues/276) - Mixins do not apply on NeoForge
18+
+ Fixes [#263](https://github.com/WhoCraft/TardisRefined/issues/263) - Teleporting player within the same dimension via the corridor airlock does not update position.
19+
+ Fixes [#255](https://github.com/WhoCraft/TardisRefined/issues/255) - Controls on Toyota and Crystal having overlapping controls.
20+
+ Refines Immersive Portal Compatibility (Not every Shell with have Immersive Portals yet)
21+
+ Stopped the ability to sleep within a TARDIS (Preventing sleeping inside a Tardis dimension was an intended feature but was originally not implemented correctly. To revert this change, customise with a DataPack)
22+
23+
24+
## CODE IMPROVEMENTS
25+
+ Refactored code for ConsoleModels for performance
26+
+ Refactored code for TardisClientData to make it more performant
27+
+ Refactored code for Teleporting to ease future porting
28+
29+
Full Changelog: [https://wiki.tardisrefined.net/version-2-0-1.html](https://wiki.tardisrefined.net/version-2-0-1.html)

common/src/main/java/whocraft/tardis_refined/compat/portals/ImmersivePortals.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import whocraft.tardis_refined.common.tardis.manager.TardisInteriorManager;
3434
import whocraft.tardis_refined.common.tardis.manager.TardisPilotingManager;
3535
import whocraft.tardis_refined.common.tardis.themes.ShellTheme;
36+
import whocraft.tardis_refined.common.util.Platform;
3637
import whocraft.tardis_refined.compat.ModCompatChecker;
3738
import whocraft.tardis_refined.registry.RegistrySupplier;
3839
import whocraft.tardis_refined.registry.TRDimensionTypes;
@@ -224,7 +225,7 @@ private static void setupPortalsForShellThemes() {
224225
detectMissingSetup();
225226
}
226227

227-
228+
228229
private static void detectMissingSetup() {
229230
for (ResourceLocation value : ShellTheme.SHELL_THEME_REGISTRY.keySet()) {
230231
if (!isShellThemeSupported(value) && !value.equals(ShellTheme.getKey(ShellTheme.BRIEFCASE.get()))) {
@@ -258,7 +259,11 @@ public static boolean onDoorRemoved(Level level, Player player, BlockPos blockPo
258259

259260
public static void createPortals(TardisLevelOperator operator) {
260261

261-
setupPortalsForShellThemes();
262+
// Just for debugging editing values
263+
if(!Platform.isProduction()) {
264+
setupPortalsForShellThemes();
265+
}
266+
262267
destroyPortals(operator);
263268
UUID dimId = UUID.fromString(operator.getLevel().dimension().location().getPath());
264269

@@ -269,7 +274,12 @@ public static void createPortals(TardisLevelOperator operator) {
269274
TardisInternalDoor door = operator.getInternalDoor();
270275
TardisPilotingManager pilotingManager = operator.getPilotingManager();
271276

272-
if (interiorManager.isCave() || door != null && !door.isOpen() || !operator.isTardisReady() || EXISTING_PORTALS.get(dimId) != null || !isShellThemeSupported(theme) || door == null) {
277+
if(!isShellThemeSupported(theme)){
278+
destroyPortals(operator); //we're going to make sure.
279+
return;
280+
}
281+
282+
if (interiorManager.isCave() || door != null && !door.isOpen() || !operator.isTardisReady() || EXISTING_PORTALS.get(dimId) != null || door == null) {
273283
return;
274284
}
275285

@@ -310,7 +320,7 @@ public static void createPortals(TardisLevelOperator operator) {
310320
exteriorPortal.setShellTheme(ShellTheme.getShellTheme(theme));
311321
interiorPortal.setShellTheme(ShellTheme.getShellTheme(theme));
312322

313-
EXISTING_PORTALS.put(dimId, new PortalEntry(interiorPortal, exteriorPortal, ShellTheme.getShellTheme(theme), dimId));
323+
updatePortalEntry(operator, dimId, interiorPortal, exteriorPortal, theme);
314324

315325
PortalManipulation.adjustRotationToConnect(exteriorPortal, interiorPortal);
316326
exteriorPortal.setInteractable(false);
@@ -330,6 +340,11 @@ public static void createPortals(TardisLevelOperator operator) {
330340
interiorPortal.reloadPortal();
331341
}
332342

343+
private static void updatePortalEntry(TardisLevelOperator operator, UUID dimId, BOTIPortalEntity interiorPortal, BOTIPortalEntity exteriorPortal, ResourceLocation theme) {
344+
destroyPortals(operator);
345+
EXISTING_PORTALS.put(dimId, new PortalEntry(interiorPortal, exteriorPortal, ShellTheme.getShellTheme(theme), dimId));
346+
}
347+
333348
public static void destroyPortals(TardisLevelOperator operator) {
334349
UUID tardisID = UUID.fromString(operator.getLevel().dimension().location().getPath());
335350
PortalEntry portalEntry = EXISTING_PORTALS.get(tardisID);

fabric/build.gradle

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id "com.github.johnrengelman.shadow" version "7.1.2"
3+
id "me.shedaniel.unified-publishing" version "0.1.+"
34
}
45

56
architectury {
@@ -11,6 +12,45 @@ loom {
1112
accessWidenerPath = project(":common").loom.accessWidenerPath
1213
}
1314

15+
unifiedPublishing {
16+
project {
17+
displayName = "[Fabric] - Tardis Refined - v$project.version"
18+
releaseType = "release"
19+
changelog = new File("${rootProject.projectDir}/changelog.md").text
20+
gameVersions = ["$rootProject.minecraft_version"]
21+
mainPublication tasks.remapJar
22+
gameLoaders = ["fabric"]
23+
relations {
24+
depends {
25+
curseforge = "fabric-api"
26+
modrinth = "fabric-api"
27+
}
28+
optional {
29+
curseforge = "immersive-portals-mod"
30+
modrinth = "immersiveportals"
31+
}
32+
}
33+
34+
var CURSE_API_KEY = project.findProperty("curseforge") ?: System.getenv("curseforge") ?: ""
35+
if (CURSE_API_KEY != "") {
36+
curseforge {
37+
token = CURSE_API_KEY
38+
id = "782697"
39+
gameVersions.addAll "Java 17", "$rootProject.minecraft_version"
40+
}
41+
}
42+
43+
var MODRINTH_TOKEN = project.findProperty("modrinth") ?: System.getenv("modrinth") ?: ""
44+
if (MODRINTH_TOKEN != "") {
45+
modrinth {
46+
token = MODRINTH_TOKEN
47+
id = "nqVt6aES"
48+
version = "$project.version+$project.name"
49+
}
50+
}
51+
}
52+
}
53+
1454
configurations {
1555
common
1656
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.

forge/build.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id "com.github.johnrengelman.shadow" version "7.1.2"
3+
id "me.shedaniel.unified-publishing" version "0.1.+"
34
}
45
architectury {
56
platformSetupLoomIde()
@@ -14,6 +15,38 @@ sourceSets {
1415
}
1516
}
1617

18+
unifiedPublishing {
19+
project {
20+
displayName = "[NeoForge] - Tardis Refined - v$project.version"
21+
releaseType = "release"
22+
changelog = new File("${rootProject.projectDir}/changelog.md").text
23+
gameVersions = ["$rootProject.minecraft_version"]
24+
mainPublication tasks.remapJar
25+
gameLoaders = ["neoforge"]
26+
relations {
27+
28+
}
29+
30+
var CURSE_API_KEY = project.findProperty("curseforge") ?: System.getenv("curseforge") ?: ""
31+
if (CURSE_API_KEY != "") {
32+
curseforge {
33+
token = CURSE_API_KEY
34+
id = "782697"
35+
gameVersions.addAll "Java 17", "$rootProject.minecraft_version"
36+
}
37+
}
38+
39+
var MODRINTH_TOKEN = project.findProperty("modrinth") ?: System.getenv("modrinth") ?: ""
40+
if (MODRINTH_TOKEN != "") {
41+
modrinth {
42+
token = MODRINTH_TOKEN
43+
id = "nqVt6aES"
44+
version = "$project.version+$project.name"
45+
}
46+
}
47+
}
48+
}
49+
1750

1851
remapJar {
1952
atAccessWideners.add('tardis_refined.accesswidener')

0 commit comments

Comments
 (0)