mirror of
https://github.com/chylex/Hardcore-Ender-Expansion-2.git
synced 2025-04-14 12:15:44 +02:00
Reduce log spam from Igneous Rock smelting transformations
This commit is contained in:
parent
676e4207f4
commit
48befaf2d2
@ -107,7 +107,10 @@ class EntityItemIgneousRock : EntityItemNoBob{
|
||||
|
||||
fun setupSmeltingTransformations(){
|
||||
smeltingTransformations = FurnaceRecipes.instance().smeltingList.map(::convertToBlockStatePair).filterNotNull().toMap()
|
||||
HEE.log.info(smeltingTransformations)
|
||||
|
||||
for((from, to) in smeltingTransformations){
|
||||
HEE.log.info("[EntityItemIgneousRock] found smelting transformation: $from -> $to")
|
||||
}
|
||||
}
|
||||
|
||||
private fun convertToBlockState(stack: ItemStack): IBlockState?{
|
||||
@ -117,7 +120,7 @@ class EntityItemIgneousRock : EntityItemNoBob{
|
||||
return try{
|
||||
item.block.getStateForPlacement(null, null, UP, 0F, 0F, 0F, meta, null, null) // UPDATE: rewrite once block states are flattened and sane
|
||||
}catch(e: Exception){
|
||||
HEE.log.warn("Faking getStateForPlacement to retrieve IBlockState from ItemStack caused a crash:", e) // UPDATE: currently crashes on BlockGlazedTerracotta
|
||||
HEE.log.warn("[EntityItemIgneousRock] faking getStateForPlacement to retrieve IBlockState from ItemStack caused a crash: ${e.stackTrace[0]}") // UPDATE: currently crashes on BlockGlazedTerracotta
|
||||
null
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user