Skip to content

Commit

Permalink
Bump structurize and fix per review
Browse files Browse the repository at this point in the history
  • Loading branch information
uecasm committed Oct 4, 2024
1 parent 78ec6ba commit 03c0ab0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mappingsVersion=1.20.1

dataGeneratorsVersion=1.19.3-0.1.54-ALPHA
blockUI_version=1.20.1-1.0.139-BETA
structurize_version=1.20.1-1.0.740-BETA
structurize_version=1.20.1-1.0.758-snapshot
domumOrnamentumVersion=1.20.1-1.0.184-BETA
multiPistonVersion=1.20-1.2.30-ALPHA

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
package com.minecolonies.core.compatibility.jei;

import com.ldtteam.structurize.blueprints.v1.Blueprint;
import com.ldtteam.structurize.client.fakelevel.FakeLevel;
import com.ldtteam.structurize.client.fakelevel.IFakeLevelLightProvider;
import net.minecraft.world.scores.Scoreboard;
import com.ldtteam.structurize.client.fakelevel.SingleBlockFakeLevel;
import net.minecraft.client.Minecraft;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.Blocks;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

public class JeiFakeLevel extends FakeLevel
@OnlyIn(Dist.CLIENT)
public class JeiFakeLevel extends SingleBlockFakeLevel
{
private static final Scoreboard SCOREBOARD = new Scoreboard();
private static final Blueprint FAKE_BLOCK = new Blueprint((short) 1, (short) 1, (short) 1);

public JeiFakeLevel()
{
super(FAKE_BLOCK, IFakeLevelLightProvider.USE_CLIENT_LEVEL, SCOREBOARD, false);
super(null);
prepare(Blocks.AIR.defaultBlockState(), null, null);
}

@Override
public Level realLevel()
{
return Minecraft.getInstance().level;
}
}

0 comments on commit 03c0ab0

Please sign in to comment.