Skip to content

Commit

Permalink
update to MC1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Dec 31, 2023
1 parent 8a0e983 commit 1bcd7fb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

loom = "1.4.+"

minecraft = "1.20.2"
fabric_loader = "0.14.22"
minecraft = "1.20.4"
fabric_loader = "0.15.3"

# The latest versions are available at https://parchmentmc.org/docs/getting-started
parchment = "2023.12.10"

fabric_api = "0.89.0+1.20.2"
fabric_api = "0.92.0+1.20.4"

[libraries]
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import dev.upcraft.glassential.Glassential;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.core.registries.Registries;
Expand All @@ -13,9 +12,9 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.AbstractGlassBlock;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.TransparentBlock;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.pathfinder.PathComputationType;
Expand All @@ -27,7 +26,8 @@
import java.util.List;
import java.util.function.UnaryOperator;

public class GlassentialGlassBlock extends AbstractGlassBlock {
@SuppressWarnings("deprecation")
public class GlassentialGlassBlock extends TransparentBlock {

private final BlockProperties[] properties;
private final boolean dark;
Expand All @@ -41,7 +41,7 @@ public GlassentialGlassBlock(String cullId, BlockProperties... properties) {
}

public GlassentialGlassBlock(UnaryOperator<BlockBehaviour.Properties> settingsApplier, String cullId, BlockProperties... properties) {
super(settingsApplier.apply(FabricBlockSettings.copy(Blocks.GLASS)));
super(settingsApplier.apply(Properties.ofFullCopy(Blocks.GLASS)));
this.properties = properties;
List<BlockProperties> props = Arrays.asList(properties);
this.dark = props.contains(BlockProperties.TINTED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import dev.upcraft.glassential.Glassential;
import net.minecraft.core.Direction;
import net.minecraft.world.level.block.AbstractGlassBlock;
import net.minecraft.world.level.block.TintedGlassBlock;
import net.minecraft.world.level.block.TransparentBlock;
import net.minecraft.world.level.block.state.BlockState;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(TintedGlassBlock.class)
public abstract class TintedGlassBlockMixin extends AbstractGlassBlock {
public abstract class TintedGlassBlockMixin extends TransparentBlock {

private TintedGlassBlockMixin(Properties settings) {
super(settings);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"depends": {
"fabricloader": "*",
"fabric-api": "*",
"minecraft": "=1.20.2",
"minecraft": "=1.20.4",
"java": ">=17"
},
"custom": {
Expand Down

0 comments on commit 1bcd7fb

Please sign in to comment.