mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Remove uses of java.awt (#5591)
`java.awt` will statically load itself when `java.awt.Color`, `java.awt.Dimension`, etc are loaded. This conflicts with lwjgl3 and must be avoided (except for in mojang's server gui).
This commit is contained in:
1 parent
5e7279b0a2
commit
5fa732d223
11 files changed
+83
-39
No files matched your search
@@ -19,8 +19,6 @@
|
||||
|
||||
package net.minecraftforge.debug.fluid;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
@@ -41,7 +39,7 @@ import net.minecraftforge.fml.common.registry.GameRegistry.ObjectHolder;
|
||||
public class ColoredFluidTest
|
||||
{
|
||||
static final boolean ENABLED = false; // <-- enable mod
|
||||
static final Color COLOR = Color.PINK; // <-- change this to try other colors
|
||||
static final int COLOR = 0xFFAFAF; // <-- change this to try other colors
|
||||
|
||||
static final String MODID = "fluidadditionalfields";
|
||||
static final ResourceLocation RES_LOC = new ResourceLocation(MODID, "slime");
|
||||
|
||||
Reference in new issue
Block a user