Skip to content

Commit

Permalink
codec
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoLezury committed Jul 28, 2024
1 parent 19c552a commit 8004c53
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import java.util.List;

public class CLanternBlock extends BaseEntityBlock implements SimpleWaterloggedBlock {
public static final MapCodec<CLanternBlock> CODEC = simpleCodec(CLanternBlock::new);
public static final BooleanProperty LIT = BlockStateProperties.LIT;
public static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED;

Expand All @@ -55,7 +56,7 @@ public CLanternBlock(Properties properties) {

@Override
protected MapCodec<? extends BaseEntityBlock> codec() {
return null;
return CODEC;
}

@Override
Expand Down

0 comments on commit 8004c53

Please sign in to comment.