Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzinsel64 committed Jan 19, 2024
1 parent ed5825b commit 1a7445b
Showing 1 changed file with 13 additions and 27 deletions.
40 changes: 13 additions & 27 deletions src/main/java/bl4ckscor3/mod/sit/SitHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,27 @@ public void onPlayerInteract(PlayerInteractEvent event) {
if (!EntitySit.OCCUPIED.containsKey(p) && e.getHeldItem() == null) {
if (b instanceof BlockSlab) {
if ((w.getBlockMetadata(p.x, p.y, p.z) & 8) != 0) return;
}
else if (b instanceof BlockStairs) {
} else if (b instanceof BlockStairs) {
if ((w.getBlockMetadata(p.x, p.y, p.z) & 4) != 0) return;
}
else if (Loader.isModLoaded("ImmersiveEngineering")
} else if (Loader.isModLoaded("ImmersiveEngineering")
&& b instanceof blusunrize.immersiveengineering.common.blocks.BlockIESlabs) {
TileEntity te = w.getTileEntity(event.x, event.y, event.z);

if ((te instanceof blusunrize.immersiveengineering.common.blocks.TileEntityIESlab)
&& ((blusunrize.immersiveengineering.common.blocks.TileEntityIESlab) te).slabType != 0)
return;
}
else if (Loader.isModLoaded("CarpentersBlocks"))
{
if (b instanceof com.carpentersblocks.block.BlockCarpentersStairs)
{
}
else if (b instanceof com.carpentersblocks.block.BlockCarpentersSlope)
{
}
else if (b instanceof com.carpentersblocks.block.BlockCarpentersBlock)
{
TileEntity te = w.getTileEntity(event.x, event.y, event.z);
} else if (Loader.isModLoaded("CarpentersBlocks")) {
if (b instanceof com.carpentersblocks.block.BlockCarpentersStairs) {} else
if (b instanceof com.carpentersblocks.block.BlockCarpentersSlope) {} else
if (b instanceof com.carpentersblocks.block.BlockCarpentersBlock) {
TileEntity te = w.getTileEntity(event.x, event.y, event.z);

if (te instanceof com.carpentersblocks.tileentity.TEBase)
{
com.carpentersblocks.tileentity.TEBase TE = (com.carpentersblocks.tileentity.TEBase)te;
if (TE.getData() != com.carpentersblocks.data.Slab.SLAB_Y_NEG)
return;
}
}
else
return;
}
else return;
if (te instanceof com.carpentersblocks.tileentity.TEBase) {
com.carpentersblocks.tileentity.TEBase TE = (com.carpentersblocks.tileentity.TEBase) te;
if (TE.getData() != com.carpentersblocks.data.Slab.SLAB_Y_NEG) return;
}
} else return;
} else return;

EntitySit sit = new EntitySit(w, p);

Expand Down

0 comments on commit 1a7445b

Please sign in to comment.