24bit depth buffer and...removed the 10mb array that never got used
parent
b96c3e3a7c
commit
83f794e33e
|
@ -24,7 +24,9 @@ public class WyHelper {
|
||||||
Random rand = new Random();
|
Random rand = new Random();
|
||||||
// player.level.playSound(player, "random.break", 1, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);
|
// player.level.playSound(player, "random.break", 1, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);
|
||||||
|
|
||||||
// player.dropItem(new ItemInstance(ItemType.pickaxeGold, 1), false);
|
// player.dropItem(new ItemInstance(ItemType.hatchetDiamond, 1), false);
|
||||||
|
// player.dropItem(new ItemInstance(ItemType.shovelDiamond, 1), false);
|
||||||
|
// player.dropItem(new ItemInstance(Tile.CLAY, 128), false);
|
||||||
// player.dropItem(new ItemInstance(Tile.GOLD_ORE, 64), false);
|
// player.dropItem(new ItemInstance(Tile.GOLD_ORE, 64), false);
|
||||||
|
|
||||||
// player.dropItem(new ItemInstance(ItemType.bow, 1), false);
|
// player.dropItem(new ItemInstance(ItemType.bow, 1), false);
|
||||||
|
|
|
@ -2,9 +2,13 @@ package xyz.pixelatedw.finalbeta.mixin;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
|
import org.lwjgl.LWJGLException;
|
||||||
|
import org.lwjgl.opengl.Display;
|
||||||
|
import org.lwjgl.opengl.PixelFormat;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
|
@ -12,6 +16,14 @@ import xyz.pixelatedw.finalbeta.ModConfig;
|
||||||
|
|
||||||
@Mixin(Minecraft.class)
|
@Mixin(Minecraft.class)
|
||||||
public class MinecraftMixin {
|
public class MinecraftMixin {
|
||||||
|
|
||||||
|
@Redirect(method = "init()V", at = @At(value = "INVOKE", target = "Lorg/lwjgl/opengl/Display;create()V"))
|
||||||
|
public void createDisplay() throws LWJGLException {
|
||||||
|
// Why the fuck is this even a thing ? What was its intended purpose ? I NEED TO KNOW
|
||||||
|
Minecraft.field_2800 = null;
|
||||||
|
Display.create(new PixelFormat(0, 24, 0));
|
||||||
|
}
|
||||||
|
|
||||||
@Inject(method = "loadSoundFromDir", at = @At("HEAD"))
|
@Inject(method = "loadSoundFromDir", at = @At("HEAD"))
|
||||||
public void loadSoundFromDir(String string, File file, CallbackInfo ci) {
|
public void loadSoundFromDir(String string, File file, CallbackInfo ci) {
|
||||||
if(ModConfig.ADD_MORE_SOUNDS.get()) {
|
if(ModConfig.ADD_MORE_SOUNDS.get()) {
|
||||||
|
|
Loading…
Reference in New Issue