fix github actions compiling.

This commit is contained in:
scorbett123 2022-05-31 15:08:52 +01:00
parent 2dad6262cf
commit a6557121a0
1 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import net.minecraft.block.state.IBlockState;
import net.minecraft.world.IBlockAccess;
import java.lang.reflect.Array;
import java.util.Iterator;
import java.util.Optional;
import java.util.function.Function;
@ -41,7 +42,8 @@ public class PrecomputedDataForBlockState {
}
public void refresh() {
for (IBlockState state : Block.BLOCK_STATE_IDS) { // state should never be null
for (Iterator<IBlockState> it = Block.BLOCK_STATE_IDS.iterator(); it.hasNext(); ) { // Can be replaced with an enhanced for because that breaks github actions for some reason I can't be bothered to dig into
IBlockState state = it.next(); // state should never be null
Optional<Boolean> applied = precomputer.apply(state);
int id = Block.BLOCK_STATE_IDS.get(state);