Skip to content

Instantly share code, notes, and snippets.

View Rover656's full-sized avatar
🐝
looking for a spare bee mod.

Reece Mackie Rover656

🐝
looking for a spare bee mod.
View GitHub Profile
---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!
Time: 2023-07-29 12:54:05
Description: Tesselating block model
java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "pk" is null
at java.util.ImmutableCollections$MapN.probe(ImmutableCollections.java:1321) ~[?:?] {}
at java.util.ImmutableCollections$MapN.get(ImmutableCollections.java:1235) ~[?:?] {}
at net.minecraft.client.renderer.texture.TextureAtlas.getSprite(TextureAtlas.java:126) ~[forge-1.20.1-47.0.42_mapped_sugarcane_2023.07.02-1.20.1-recomp.jar%23191!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:A,pl:runtimedistcleaner:A}
@Rover656
Rover656 / assethelper.c
Created January 18, 2022 00:17
A quick and dirty way of locating the assets directory in a raylib project.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "raylib.h"
// Locate the assets directory.
char* GetAssetsDirectory() {
static char assetDir[1024] = {0};
@Rover656
Rover656 / TransvoxelLookup.compute
Last active December 8, 2023 18:05
Transvoxel lookup tables converted to Unity compute shaders.
//================================================================================
//
// The Transvoxel Algorithm look-up tables
// Converted to Unity compute shaders by Reece Mackie (https://www.nerdthings.dev)
// I will be adding the transition cell tables once I start using them in my own project.
//
// Copyright 2009 by Eric Lengyel
//
// The following data originates from Eric Lengyel's Transvoxel Algorithm.
// http://transvoxel.org/