Tiph-Studios / DysonSphereProject

A mod for Minecraft
Apache License 2.0
0 stars 0 forks source link

getShape is depreciated #40

Closed zhouzhouthezhou closed 9 months ago

zhouzhouthezhou commented 9 months ago

According to SonarLint getShape is depreciated and should not be overridden. We should figure out the up to date way to create a slab-ish block

    @Override
    public VoxelShape getShape(
            BlockState p_60555_, BlockGetter p_60556_, BlockPos p_60557_, CollisionContext p_60558_) {
        return SHAPE;
    }
zhouzhouthezhou commented 9 months ago

maybe this is ok idk image

zhouzhouthezhou commented 9 months ago

I guess action item here is to see how other neoforged mods do it. I've been using https://vscode.dev/github/JDDev0/EnergizedPower/ as a reference point

PJWahlgren commented 9 months ago

Every other mod uses it. Begone!