Skip to content

Commit 404be0d

Browse files
committed
v0.15.2.0 - Update to PMWeather 0.15.2
- No more flashing should occur where the terrain shows on radar for 1 tick - Updated README with instructions for adding PMWeather Took 1 hour 7 minutes
1 parent 5af5c74 commit 404be0d

3 files changed

Lines changed: 21 additions & 8 deletions

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,27 @@ In your `build.gradle`, add the following:
3131

3232
```groovy
3333
repositories {
34+
maven {
35+
name = "Modrinth"
36+
url = "https://api.modrinth.com/maven"
37+
}
3438
maven {
3539
name = "DU Maven"
3640
url = "https://maven.digitalunderworlds.com/snapshots/"
3741
}
3842
}
3943
4044
dependencies {
41-
implementation "net.nullved:pmweatherapi:<version>"
45+
implementation "maven.modrinth:protomanlys-weather:${pmweather_ver}-alpha"
46+
implementation "net.nullved:pmweatherapi:${pmweatherapi_ver}"
4247
}
4348
```
4449

50+
In your `gradle.properties`, add:
51+
52+
```properties
53+
pmweather_ver=0.15.1
54+
pmweatherapi_ver=0.15.1.0
55+
```
56+
4557
For usage examples and more details, check out the [wiki](https://github.com/RealDarkStudios/PMWeatherAPI/wiki/).

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ parchment_mappings_version=2024.11.17
1717
mod_id=pmweatherapi
1818
mod_name=PMWeatherAPI
1919
mod_license=GNU GPL 3.0
20-
mod_version=0.15.1.0
20+
mod_version=0.15.2.0
2121
mod_group_id=net.nullved
2222
mod_authors=NullVed
2323
mod_description=An API for interfacing with ProtoManly's Weather Mod
2424

2525
# Dependencies
26-
pmweather_version=0.15.1
26+
pmweather_version=0.15.2
2727
pmweather_version_range=[0.15.0-1.21.1-alpha,0.15.999-1.21.1-alpha)

src/main/java/net/nullved/pmweatherapi/mixin/RadarRendererMixin.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,15 +433,16 @@ private void render(BlockEntity blockEntity, float partialTicks, PoseStack poseS
433433
}
434434

435435
float rdbz = dbz * 60.0F;
436-
Color startColor = radarBlockEntity.terrainMap.getOrDefault(id, Color.BLACK);
436+
Color startColor = radarBlockEntity.terrainMap.getOrDefault(longID, Color.BLACK);
437437
if (radarBlockEntity.init && update) {
438438
Holder<Biome> biome = radarBlockEntity.getNearestBiome(new BlockPos((int) worldPos.x, (int) worldPos.y, (int) worldPos.z));
439439
String rn = biome.getRegisteredName().toLowerCase();
440440
if (rn.contains("ocean") || rn.contains("river")) startColor = new Color(biome.value().getWaterColor());
441-
else if (rn.contains("beach") || rn.contains("desert")) {
442-
if (rn.contains("badlands")) startColor = new Color(214, 111, 42);
443-
else startColor = new Color(biome.value().getGrassColor(worldPos.x, worldPos.z));
444-
} else startColor = new Color(227, 198, 150);
441+
else if (rn.contains("beach") || rn.contains("desert")) startColor = new Color(227, 198, 150);
442+
else if (rn.contains("badlangs")) startColor = new Color(214, 111, 42);
443+
else startColor = new Color(biome.value().getGrassColor(worldPos.x, worldPos.z));
444+
445+
radarBlockEntity.terrainMap.put(longID, startColor);
445446
}
446447

447448
if (PMWClientConfig.disableCustomRadarModeRendering) {

0 commit comments

Comments
 (0)