1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-18 15:37:38 +00:00

Small bits of cleanup

- Remove unused MonitorRenderer. I'm sure this had been deleted
   already, but apparently not!
 - Add missing items to the changelog.
 - Fix crash when clearing tests in a world.
 - Bump Iris deps, to help with debugging #2229.
This commit is contained in:
Jonathan Coates
2025-07-10 00:26:42 +01:00
parent 67412a2b72
commit 4868c4aa32
5 changed files with 7 additions and 37 deletions

View File

@@ -1,32 +0,0 @@
// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
package dan200.computercraft.shared.peripheral.monitor;
/**
* The render type to use for monitors.
*
* @see dan200.computercraft.client.render.TileEntityMonitorRenderer
* @see ClientMonitor
*/
public enum MonitorRenderer {
/**
* Determine the best monitor backend.
*/
BEST,
/**
* Render using texture buffer objects.
*
* @see org.lwjgl.opengl.GL31#glTexBuffer(int, int, int)
*/
TBO,
/**
* Render using VBOs.
*
* @see com.mojang.blaze3d.vertex.VertexBuffer
*/
VBO,
}

View File

@@ -88,7 +88,7 @@ object TestHooks {
LOG.info("Cleaning up after last run")
val level = server.overworld()
StructureUtils.findTestBlocks(getTestOrigin(server), 200, level).forEach { pos ->
StructureUtils.findTestBlocks(getTestOrigin(server), 200, level).toList().forEach { pos ->
val test = level.getBlockEntity(pos, BlockEntityType.TEST_INSTANCE_BLOCK).getOrNull() ?: return@forEach
StructureUtils.clearSpaceForStructure(test.structureBoundingBox, level)
}