Skip to content

Commit

Permalink
Revoke Connector status from DebugHeater 2
Browse files Browse the repository at this point in the history
  • Loading branch information
yuesha-yc committed Jan 10, 2025
1 parent 65aaac6 commit ddad0fb
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,4 @@ public InteractionResult use(BlockState state, Level world, BlockPos pos, Player
public Supplier<BlockEntityType<DebugHeaterTileEntity>> getBlock() {
return FHBlockEntityTypes.DEBUGHEATER;
}
@Override
public void neighborChanged(BlockState state, Level worldIn, BlockPos pos, Block blockIn, BlockPos fromPos,
boolean isMoving) {
super.neighborChanged(state, worldIn, pos, blockIn, fromPos, isMoving);
//Direction d = FHUtils.dirBetween(fromPos, pos);
//System.out.println("changed")2
if(!worldIn.isClientSide)
worldIn.scheduleTick(pos, this, 10);

}

@Override
public void tick(BlockState state, ServerLevel worldIn, BlockPos pos, RandomSource pRandom) {
//System.out.println("ticked "+pos);
super.tick(state, worldIn, pos, pRandom);
DebugHeaterTileEntity te=FHUtils.getExistingTileEntity(worldIn, pos, DebugHeaterTileEntity.class);
if(te!=null)
te.getNetwork().startConnectionFromBlock(te);
}
}

0 comments on commit ddad0fb

Please sign in to comment.