Skip to content

Commit ccfc645

Browse files
committed
carrot fix
1 parent d9397e2 commit ccfc645

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val FABRIC_API_VERSION by extra { "0.110.5+1.21.4" }
1414
val PARCHMENT_VERSION by extra { null }
1515

1616
// https://semver.org/
17-
val MOD_VERSION by extra { "1.8.2" }
17+
val MOD_VERSION by extra { "1.8.3" }
1818

1919
allprojects {
2020
apply(plugin = "java")

common/src/main/java/net/irisshaders/iris/Iris.java

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import java.nio.file.InvalidPathException;
6060
import java.nio.file.NoSuchFileException;
6161
import java.nio.file.Path;
62+
import java.util.Calendar;
6263
import java.util.HashMap;
6364
import java.util.Map;
6465
import java.util.Optional;
@@ -77,6 +78,7 @@ public class Iris {
7778
*/
7879
public static final String MODNAME = "Iris";
7980
public static final IrisLogging logger = new IrisLogging(MODNAME);
81+
public static final boolean IS_FOOL;
8082
private static final Map<String, String> shaderPackOptionQueue = new HashMap<>();
8183
// Change this for snapshots!
8284
private static final String backupVersionNumber = "1.21";
@@ -107,6 +109,9 @@ public class Iris {
107109
static {
108110
if (!BuildConfig.ACTIVATE_RENDERDOC && IrisPlatformHelpers.getInstance().isDevelopmentEnvironment() && System.getProperty("user.name").contains("ims") && Util.getPlatform() == Util.OS.LINUX) {
109111
}
112+
113+
Calendar c = Calendar.getInstance();
114+
IS_FOOL = c.get(Calendar.MONTH) == Calendar.APRIL && c.get(Calendar.DAY_OF_MONTH) == 1;
110115
}
111116

112117
/**

common/src/main/java/net/irisshaders/iris/mixin/fantastic/MixinFireworkSparkParticle.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package net.irisshaders.iris.mixin.fantastic;
22

3+
import net.irisshaders.iris.Iris;
34
import net.irisshaders.iris.fantastic.IrisParticleRenderTypes;
45
import net.minecraft.client.multiplayer.ClientLevel;
56
import net.minecraft.client.particle.ParticleRenderType;
@@ -15,6 +16,6 @@ private MixinFireworkSparkParticle(ClientLevel level, double x, double y, double
1516

1617
@Override
1718
public ParticleRenderType getRenderType() {
18-
return IrisParticleRenderTypes.TERRAIN_OPAQUE;
19+
return Iris.IS_FOOL ? ParticleRenderType.TERRAIN_SHEET : ParticleRenderType.PARTICLE_SHEET_OPAQUE;
1920
}
2021
}

fabric/src/main/java/net/irisshaders/iris/mixin/fabric/MixinParticleEngine.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import net.minecraft.client.particle.Particle;
1212
import net.minecraft.client.particle.ParticleEngine;
1313
import net.minecraft.client.particle.ParticleRenderType;
14-
import net.minecraft.client.renderer.LightTexture;
1514
import net.minecraft.client.renderer.MultiBufferSource;
1615
import org.spongepowered.asm.mixin.Final;
1716
import org.spongepowered.asm.mixin.Mixin;
@@ -26,7 +25,6 @@
2625
import java.util.ArrayList;
2726
import java.util.List;
2827
import java.util.Queue;
29-
import java.util.function.Supplier;
3028

3129
/**
3230
* Extends the ParticleEngine class to allow multiple phases of particle rendering.
@@ -64,8 +62,7 @@ public class MixinParticleEngine implements PhasedParticleEngine {
6462
static {
6563
OPAQUE_PARTICLE_RENDER_TYPES = ImmutableList.of(
6664
ParticleRenderType.PARTICLE_SHEET_OPAQUE,
67-
IrisParticleRenderTypes.TERRAIN_OPAQUE,
68-
ParticleRenderType.NO_RENDER
65+
IrisParticleRenderTypes.TERRAIN_OPAQUE
6966
);
7067

7168
RENDER_ORDER = List.of(ParticleRenderType.TERRAIN_SHEET, IrisParticleRenderTypes.TERRAIN_OPAQUE, ParticleRenderType.PARTICLE_SHEET_OPAQUE, ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT);

0 commit comments

Comments
 (0)