update gtceu + properly access to the material api

This commit is contained in:
Dmitry 2024-01-26 17:36:31 +07:00
parent 1cbc03c016
commit 2691037774
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
const registerComputerCraftData = (event) => {
const TURTLE_TOOL_TYPES = [ GTToolType.SWORD, GTToolType.PICKAXE, GTToolType.AXE, GTToolType.SHOVEL, GTToolType.HOE ]
GTRegistries.MATERIALS.forEach(material => {
GTCEuAPI.materialManager.getRegisteredMaterials().forEach(material => {
TURTLE_TOOL_TYPES.forEach(type => {
let toolStack = $ToolHelper.get(type, material)

View file

@ -3,7 +3,7 @@
const registerGTCEULoots = (event) => {
global.TFC_STONE_TYPES.forEach(stoneType => {
GTRegistries.MATERIALS.forEach(material => {
GTCEuAPI.materialManager.getRegisteredMaterials().forEach(material => {
if (material.hasProperty(PropertyKey.ORE)) {
let stoneTypeMaterial = GTMaterials.get(stoneType)

View file

@ -60,7 +60,7 @@ const registerTFCHeats = (event) => {
if (!tool.isEmpty()) event.itemHeat(tool, heatCapacity, tfcProperty.getForgingTemp(), tfcProperty.getWeldingTemp())
}
GTRegistries.MATERIALS.forEach(material => {
GTCEuAPI.materialManager.getRegisteredMaterials().forEach(material => {
let tfcProperty = material.getProperty(TFGPropertyKey.TFC_PROPERTY)
if (tfcProperty != null) {

2
mods

@ -1 +1 @@
Subproject commit ff7b2aa949c18e06f0113fe12674a6889e901092
Subproject commit bc5f046a39a1cf54c4da11cb2023c6e6cb25677b