Skip to content

Commit 46825ea

Browse files
2.0.4
1 parent baa3b0b commit 46825ea

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

changelog/2.0.4.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## Visuality: Reforged 2.0.4
2+
Improve performance a little bit.

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.daemon=false
66
maven_group = plus.dragons.visuality
77
mod_name = visuality-forge
88
mod_id = visuality
9-
mod_version = 2.0.3
9+
mod_version = 2.0.4
1010
minecraft_version = 1.20.4
1111
neo_version = 20.4.163-beta
1212

src/main/java/plus/dragons/visuality/config/BlockAmbientParticleConfig.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ public BlockAmbientParticleConfig() {
4545

4646
@SuppressWarnings("deprecation")
4747
public void spawnParticles(BlockState state, Level level, BlockPos pos, RandomSource random) {
48-
if (!enabled || !level.isAreaLoaded(pos, 1))
48+
if (!enabled || !particles.containsKey(state.getBlock()))
4949
return;
50-
Block block = state.getBlock();
51-
if (!particles.containsKey(block))
50+
if (!level.isAreaLoaded(pos, 1))
5251
return;
53-
54-
var entry = particles.get(block);
52+
var entry = particles.get(state.getBlock());
5553
var directions = entry.getFirst();
5654
int i = random.nextInt(interval);
5755
if (i >= directions.length)

0 commit comments

Comments
 (0)