clean up
This commit is contained in:
@@ -103,14 +103,12 @@ namespace Voxel.Core
|
||||
);
|
||||
}
|
||||
|
||||
/// highly optimized getter for the hot-path (Meshing/Raycasting)
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static BlockDefinition Get(Blocks type)
|
||||
{
|
||||
return _definitions[(byte)type];
|
||||
}
|
||||
|
||||
// internal helper to map the array
|
||||
private static void Define(Blocks type, Textures tex)
|
||||
=> _definitions[(byte)type] = new BlockDefinition(type, tex);
|
||||
|
||||
|
||||
@@ -107,7 +107,6 @@ namespace Voxel.Core
|
||||
|
||||
public void UpdateChunkMesh()
|
||||
{
|
||||
// Lock or use ThreadLocal for multi-threading later
|
||||
lock (_faceBuffer)
|
||||
{
|
||||
_faceBuffer.Clear();
|
||||
|
||||
Reference in New Issue
Block a user