Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Fixes setBlock on adv. casings
Browse files Browse the repository at this point in the history
  • Loading branch information
bartimaeusnek committed Jan 4, 2021
1 parent 398e0bc commit eda3090
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ public void setBlock(World world, int x, int y, int z, int meta) {
//Fucking Minecraft TE settings.
} catch (InterruptedException ignored) {}
Optional.ofNullable(world.getTileEntity(x,y,z))
.filter(te -> te instanceof BW_MetaGeneratedBlocks_Casing_TE)
.map(te -> (BW_MetaGeneratedBlocks_Casing_TE) te)
.filter(te -> te instanceof BW_MetaGenerated_Block_TE)
.map(te -> (BW_MetaGenerated_Block_TE) te)
.ifPresent(te -> te.mMetaData = (short) meta);
}
}

0 comments on commit eda3090

Please sign in to comment.